/* ==========================================================================
   Spenomatic Exact Brand UI Components
   ========================================================================== */

/* Top Bar */
.top-bar {
  background-color: var(--purple-dark);
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.top-bar-info a {
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-info a:hover {
  color: var(--accent-red);
}

/* Header & Navigation */
.header-main {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo-brand-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

/* Deep Purple Floating Nav Pill Bar */
.nav-purple-pill-bar {
  background-color: var(--purple-navy);
  border-radius: 50px;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 6px 20px rgba(49, 39, 92, 0.2);
}

.nav-pill-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-pill-item {
  margin: 0;
}

.nav-profile-item {
  position: relative;
}

.nav-profile-trigger {
  display: flex;
  align-items: center;
}

.nav-profile-trigger .nav-pill-link {
  padding-right: 0.45rem;
}

.nav-profile-toggle {
  width: 29px;
  height: 29px;
  margin-right: 0.7rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: rgba(255,255,255,.11);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.nav-profile-toggle span {
  display: block;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-2px);
  transition: transform .2s ease;
}

.nav-profile-item:hover .nav-profile-toggle,
.nav-profile-item:focus-within .nav-profile-toggle,
.nav-profile-item.submenu-open .nav-profile-toggle {
  background: var(--accent-red);
}

.nav-profile-item.submenu-open .nav-profile-toggle span {
  transform: translateY(2px) rotate(180deg);
}

.profile-submenu {
  position: absolute;
  z-index: 10020;
  top: calc(100% + 14px);
  left: 50%;
  width: min(520px, 92vw);
  padding: .75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(49,39,92,.12);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(30,27,75,.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.profile-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -15px;
  height: 15px;
}

.profile-submenu::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid rgba(49,39,92,.12);
  border-top: 1px solid rgba(49,39,92,.12);
  transform: translateX(-50%) rotate(45deg);
}

.nav-profile-item:hover .profile-submenu,
.nav-profile-item:focus-within .profile-submenu,
.nav-profile-item.submenu-open .profile-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.profile-submenu li {
  position: relative;
  z-index: 1;
}

.profile-submenu-link {
  min-height: 44px;
  padding: .7rem .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--purple-navy) !important;
  border-radius: 9px;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
}

.profile-submenu-link b {
  color: var(--accent-red);
  transition: transform .2s ease;
}

.profile-submenu-link:hover,
.profile-submenu-link:focus,
.profile-submenu-link.active {
  color: var(--purple-navy) !important;
  background: var(--bg-tint);
}

.profile-submenu-link:hover b,
.profile-submenu-link:focus b {
  transform: translateX(3px);
}

.nav-pill-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFFFFF !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-pill-link:hover, .nav-pill-item.active .nav-pill-link {
  background-color: #231B48;
  color: #FFFFFF !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Header Search Circle Button */
.search-btn-circle {
  background-color: var(--purple-navy);
  color: #FFFFFF !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(49, 39, 92, 0.2);
}

.search-btn-circle:hover {
  background-color: var(--accent-red);
  transform: scale(1.05);
}

/* Mobile Hamburger Button (Hidden on Desktop) */
.mobile-nav-toggle {
  display: none;
  background: var(--purple-navy);
  color: #FFFFFF;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.mobile-nav-toggle:hover {
  background: var(--accent-red);
}

/* Red Gradient Call to Action Pill Button */
.btn-red-gradient {
  display: inline-block;
  background: linear-gradient(90deg, #E11D48 0%, #9F1239 100%);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 0.95rem 2.25rem;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn-red-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(225, 29, 72, 0.5);
  color: #FFFFFF !important;
}

/* Secondary White Outline CTA Button */
.btn-outline-white-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid #FFFFFF;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 0.9rem 2.25rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.btn-outline-white-pill:hover {
  background: #FFFFFF;
  color: var(--purple-navy) !important;
  transform: translateY(-2px);
}

/* Hero Dynamic Slider Component with Lighter Overlay & Smooth Animations */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--purple-dark);
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0.8s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
}

.hero-slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide-item h1,
.hero-slide-item h2 {
  font-size: 3.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hero-slide-item p {
  font-size: 1.25rem;
  color: #F8FAFC;
  max-width: 780px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* Slider Navigation Arrows Centered Exactly */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  border: none;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.25s ease, transform 0.25s ease;
  line-height: 0;
  padding: 0 0 3px 0;
}

.slider-arrow:hover {
  background: var(--accent-red);
  transform: translateY(-50%) scale(1.1);
}

.arrow-left { left: 1.5rem; }
.arrow-right { right: 1.5rem; }

/* Dot Indicators */
.slider-dots-bar {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.dot-item {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot-item.active, .dot-item:hover {
  background: var(--accent-red);
  transform: scale(1.25);
}

/* Animated Map Country Pointers */
.map-country-zone {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-core-dot {
  width: 14px;
  height: 14px;
  background-color: var(--accent-red);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 2;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.pin-radar-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-red);
  animation: pulsePinRing 2s ease-out infinite;
  opacity: 0.8;
  z-index: 1;
}

@keyframes pulsePinRing {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.map-country-zone:hover .pin-core-dot,
.map-country-zone.active .pin-core-dot {
  transform: scale(1.35);
  background-color: #2563EB;
}

.pin-hover-tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--purple-navy);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 30;
}

.map-country-zone:hover .pin-hover-tooltip,
.map-country-zone.active .pin-hover-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Radial Circular Layout for Division Selector (Contact Page Row 2) */
.radial-circle-container {
  position: relative;
  width: 580px;
  height: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-ring {
  position: absolute;
  width: 440px;
  height: 440px;
  border: 2px dashed rgba(49, 39, 92, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.radial-center-box {
  width: 220px;
  height: 220px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  cursor: pointer;
}

.radial-node-btn {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--purple-navy);
  color: #FFFFFF;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(49, 39, 92, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  padding: 0.5rem;
}

/* Breathe In Proportionally Animation on Hover */
@keyframes breatheNode {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(49, 39, 92, 0.3);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 16px 35px rgba(225, 29, 72, 0.5);
  }
  100% {
    transform: scale(1.12);
    box-shadow: 0 12px 25px rgba(225, 29, 72, 0.4);
  }
}

.radial-node-btn:hover {
  animation: breatheNode 1.2s ease-in-out infinite alternate;
  background: var(--accent-red) !important;
  z-index: 20;
}

.radial-node-btn .node-icon {
  margin-bottom: 0.25rem;
}

.radial-node-btn .node-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

/* 7 Mathematically Balanced Nodes Radially (Center 290, 290 | Radius 210) */
.node-1 { top: 30px; left: 240px; }
.node-2 { top: 109px; left: 404px; }
.node-3 { top: 287px; left: 445px; }
.node-4 { top: 439px; left: 331px; }
.node-5 { top: 439px; left: 149px; }
.node-6 { top: 287px; left: 35px; }
.node-7 { top: 109px; left: 76px; }

/* Contact Form Popup Modal Overlay (1-to-1 Match with Screenshot 2) */
.modal-backdrop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 27, 75, 0.60);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  /* Must beat header (10000) AND chatbot bubble (99999) */
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.modal-window-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 30px 80px rgba(30, 27, 75, 0.30), 0 8px 24px rgba(0,0,0,0.12);
  position: relative;
  animation: modalFadeScale 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalFadeScale {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--slate-body);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--accent-red);
}

/* What We Do Filter Bar & Cards Stack */
.service-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.filter-pill-btn {
  background-color: var(--purple-navy);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.filter-pill-btn:hover, .filter-pill-btn.active {
  background-color: #231B48;
  box-shadow: 0 4px 12px rgba(49, 39, 92, 0.3);
  transform: translateY(-1px);
}

.service-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-card-item {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border-top: 4px solid var(--accent-red);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-card-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
}

.service-card-img-col {
  width: 100%;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
}

.service-card-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-text-col h2 {
  font-size: 1.5rem;
  color: var(--purple-navy);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card-text-col p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate-body);
  margin-bottom: 1.75rem;
}

.btn-red-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent-red) !important;
  border: 1.5px solid var(--accent-red);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1.6rem;
  border-radius: 50px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-red-outline:hover {
  background-color: var(--accent-red);
  color: #FFFFFF !important;
}

/* Project Cards Stack Layout (Exact 1-to-1 Match) */
.project-card-item {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border-top: 4px solid var(--accent-red);
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.project-card-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.5rem;
  padding: 2rem;
  align-items: start;
}

.project-card-left-col img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.project-card-left-col h3 {
  font-size: 1.3rem;
  color: var(--purple-navy);
  font-weight: 800;
  line-height: 1.35;
}

.project-card-right-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--purple-navy);
}

.project-meta-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-excerpt-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-body);
  margin-bottom: 1.75rem;
}

/* Vertical Center Timeline (Exact 1-to-1 Match with Live Website) */
.timeline-vertical-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-vertical-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--accent-red);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  position: relative;
  width: 100%;
}

.timeline-row:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content-side {
  width: 44%;
}

.timeline-card-box {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--accent-red);
}

.timeline-row:nth-child(even) .timeline-card-box {
  border-left: none;
  border-right: 4px solid var(--accent-red);
}

.timeline-center-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background-color: var(--accent-red);
  border: 4px solid #ffffff;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.3);
}

.timeline-date-side {
  width: 44%;
  text-align: center;
}

.timeline-date-pill {
  display: inline-block;
  background: var(--accent-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  padding: 0.45rem 1.75rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

/* Purple Key Statistics Block */
.stats-purple-block {
  background: linear-gradient(135deg, var(--purple-navy) 0%, var(--purple-main) 100%);
  padding: 4.5rem 0;
  color: #ffffff;
}

.stats-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.stat-card-white {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-top: 4px solid var(--accent-red);
}

.stat-card-white .num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card-white .label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple-navy);
}

/* Transforming Multiple Industries (Exact Layout) */
.transforming-left-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 380px;
}

.transforming-icons-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

.vector-icon-sm {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.transforming-heading-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.transforming-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E1B4B;
  margin-top: 1rem;
}

.transforming-icon-bottom {
  margin-top: 2rem;
  align-self: flex-end;
}

/* 2x2 Solid Purple Bottom Card Grid */
.industry-grid-exact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.industry-card-exact {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.industry-card-exact:hover {
  transform: translateY(-4px);
}

.industry-card-img-wrap {
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.industry-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-card-bar {
  background-color: var(--purple-navy);
  color: #FFFFFF;
  padding: 1.1rem 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.industry-card-bar.blue-text {
  color: #3B82F6;
}

/* Experience Our Results Section (Whitish Gradient Disabled) */
.results-section-wrap {
  background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 50%, #F8FAFC 100%);
  position: relative;
  padding: 5.5rem 0;
  overflow: hidden;
}

.results-section-wrap::before {
  display: none !important;
}

.results-left-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
}

.results-badge-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
}

.results-badge-box {
  background-color: var(--purple-navy);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 1.25rem;
  border-radius: 4px;
}

.results-badge-line {
  height: 2px;
  width: 140px;
  background-color: var(--purple-navy);
}

.results-subtitle-exact {
  font-size: 1.05rem;
  color: var(--slate-body);
  line-height: 1.6;
  max-width: 380px;
}

.results-grid-exact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.results-card-exact {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  background-color: var(--purple-navy);
}

.results-card-exact:hover {
  transform: translateY(-4px);
}

.results-card-exact .card-img-wrap {
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.results-card-exact .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.results-card-exact .card-body-wrap {
  background-color: var(--purple-navy);
  color: #FFFFFF;
  padding: 1.25rem 1rem;
  text-align: center;
}

.results-card-exact .card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
}

.results-card-exact .card-title.blue-text {
  color: #3B82F6;
}

.results-card-exact .btn-blue-pill {
  background-color: #2563EB;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.35rem;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.results-card-exact .btn-blue-pill:hover {
  background-color: #1D4ED8;
}

/* Impact Cards (5 Glassmorphism Cards) */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  color: #ffffff;
  transition: var(--transition-normal);
}

.impact-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-5px);
  border-color: var(--accent-red);
}

.impact-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.impact-card h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.impact-card p {
  font-size: 0.88rem;
  color: #CBD5E1;
}

/* Footprint Section */
.footprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.office-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--purple-main);
  box-shadow: var(--card-shadow);
}

.office-box h3 {
  color: var(--purple-navy);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.office-box p {
  font-size: 0.9rem;
  color: var(--slate-body);
}

.footprint-map-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-hover);
}

/* Conversation Banner */
.conversation-banner {
  background: linear-gradient(135deg, #EBF1FD 0%, #DCE6FB 100%);
  padding: 4.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.conversation-banner h2 {
  font-size: 2.6rem;
  color: var(--purple-navy);
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.conversation-banner p {
  color: var(--slate-body);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* Footer */
.footer-main {
  background: var(--purple-dark);
  color: #94A3B8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 3px solid var(--accent-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h2 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsiveness Rules (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-slider-container {
    height: 520px !important;
  }
  .hero-slide-item h1,
  .hero-slide-item h2 {
    font-size: 2.2rem !important;
  }
  .hero-slide-item p {
    font-size: 1.05rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Hero Slider Mobile CTAs Spacing (Prevents Touching When Stacked) */
  .hero-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }
  .hero-actions .btn-red-gradient,
  .hero-actions .btn-outline-white-pill {
    width: 85% !important;
    max-width: 320px !important;
    box-sizing: border-box !important;
    margin-bottom: 0.5rem !important;
  }

  .slider-arrow {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.8rem !important;
  }
  .arrow-left { left: 0.5rem !important; }
  .arrow-right { right: 0.5rem !important; }

  /* 1. Global Container Padding & Title Wrap Spacing */
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  h1 {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  h2, .transforming-heading-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  h3 {
    font-size: 1.3rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* 2. Service & Project Cards Stack on Mobile */
  .service-card-inner,
  .project-card-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
  }
  .service-card-img-col,
  .project-card-left-col img {
    height: 200px !important;
  }
  .service-filter-bar {
    gap: 0.5rem !important;
    justify-content: flex-start !important;
  }
  .filter-pill-btn {
    font-size: 0.82rem !important;
    padding: 0.45rem 1rem !important;
  }

  /* 3. Top Bar: Remove center contacts text, leave clickable icon buttons */
  .top-bar-center-locations {
    display: none !important;
  }
  .top-bar-text {
    display: none !important;
  }
  .top-bar-info {
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
  }
  .top-bar-info a {
    background: rgba(255, 255, 255, 0.12);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
  }

  /* 4. Full-Screen Mobile Dropdown Menu Below Header Strip */
  .header-main {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    background: #FFFFFF !important;
  }
  .header-container {
    height: 70px !important;
  }
  .logo-brand-img {
    height: 42px !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
  .nav-purple-pill-bar {
    display: none;
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 70px) !important;
    background: var(--purple-navy) !important;
    border-radius: 0 !important;
    padding: 2.5rem 1.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
  .nav-purple-pill-bar.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .nav-pill-menu {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 1rem !important;
  }
  .nav-pill-link {
    display: block !important;
    text-align: center !important;
    padding: 1rem 2rem !important;
    font-size: 1.2rem !important;
    width: 100% !important;
    max-width: 320px !important;
    border-radius: 50px !important;
  }
  .nav-profile-item {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .nav-profile-trigger {
    width: 100% !important;
    max-width: 320px !important;
    justify-content: center !important;
    position: relative !important;
  }
  .nav-profile-trigger .nav-pill-link {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
  .nav-profile-toggle {
    position: absolute !important;
    right: .75rem !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    background: rgba(255,255,255,.12) !important;
  }
  .profile-submenu,
  .nav-profile-item:hover .profile-submenu,
  .nav-profile-item:focus-within .profile-submenu {
    position: static !important;
    width: 100% !important;
    max-width: 360px !important;
    margin-top: .65rem !important;
    padding: .65rem !important;
    display: none !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    background: rgba(19,14,48,.48) !important;
    border-color: rgba(255,255,255,.12) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  .nav-profile-item.submenu-open .profile-submenu {
    display: grid !important;
  }
  .profile-submenu::before,
  .profile-submenu::after {
    display: none !important;
  }
  .profile-submenu-link {
    min-height: 46px !important;
    padding: .65rem .7rem !important;
    color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    font-size: .75rem !important;
    line-height: 1.25 !important;
  }
  .profile-submenu-link:hover,
  .profile-submenu-link:focus,
  .profile-submenu-link.active {
    color: #fff !important;
    background: rgba(225,29,72,.95) !important;
  }

  /* 6. Desktop Row Sections Stacked Vertically */
  .section-padding {
    padding: 3.5rem 0 !important;
  }
  
  /* 2-Column Grid Containers Stacked */
  .section-padding .container > div[style*="grid-template-columns"],
  .footprint-grid,
  .results-section-wrap .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
  }

  .results-left-wrap {
    padding-right: 0 !important;
  }

  /* 2x2 Image Grid Stacked Vertically */
  .industry-grid-exact,
  .results-grid-exact {
    grid-template-columns: 1fr !important;
  }

  /* Key Stats Cards Grid Stacked */
  .stats-grid-cards {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* 5 Pillars Impact Grid Stacked */
  .impact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Footer 4-Column Grid Stacked */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Transforming Section Left Box Reset */
  .transforming-left-wrap {
    min-height: auto;
  }

  /* 7. Vertical Timeline Mobile Contained (No Right Overflow) */
  .timeline-vertical-wrap {
    padding: 1rem 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .timeline-vertical-wrap::before {
    left: 12px !important;
  }
  .timeline-row,
  .timeline-row:nth-child(even) {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 2.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .timeline-content-side,
  .timeline-date-side {
    width: calc(100% - 36px) !important;
    margin-left: 36px !important;
    box-sizing: border-box !important;
  }
  .timeline-card-box {
    padding: 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-left: 4px solid var(--accent-red) !important;
    border-right: none !important;
  }
  .timeline-center-node {
    left: 12px !important;
    top: 24px !important;
    transform: translateX(-50%) !important;
  }
  .timeline-date-side {
    margin-top: 0.75rem !important;
    text-align: left !important;
  }
  .timeline-date-pill {
    font-size: 1.05rem !important;
    padding: 0.35rem 1.25rem !important;
  }

  /* Radial Circle Mobile Responsiveness */
  .radial-circle-container {
    width: 340px;
    height: 340px;
  }
  .radial-ring {
    width: 260px;
    height: 260px;
  }
  .radial-node-btn {
    width: 75px;
    height: 75px;
  }
  .radial-node-btn .node-label {
    font-size: 0.62rem;
  }
  .node-1 { top: 10px; left: 135px; }
  .node-2 { top: 45px; left: 225px; }
  .node-3 { top: 135px; left: 255px; }
  .node-4 { top: 225px; left: 220px; }
  .node-5 { top: 255px; left: 135px; }
  .node-6 { top: 210px; left: 45px; }
  .node-7 { top: 110px; left: 15px; }

  /* Contact Page Mobile Map & Info Re-ordering (Map on Top, Location Details Below Map) */
  .contact-map-grid-container {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 2.25rem !important;
  }

  .modal-backdrop-overlay {
    padding: 1rem;
    align-items: flex-end;  /* slide up from bottom on mobile */
  }

  .modal-window-card {
    border-radius: 20px 20px 14px 14px;
    padding: 2rem 1.5rem 1.75rem;
    max-height: 85vh;
  }
}

/* ==========================================================================
   Header Dropdown Search Form (Spenomatic Gradient Border & Inline Design)
   ========================================================================== */
.header-search-dropdown {
  position: relative;
  z-index: 999;
  background: #FFFFFF;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(135deg, var(--purple-navy), var(--accent-red), var(--purple-light)) 1;
  box-shadow: 0 15px 35px rgba(40, 30, 72, 0.12);
  padding: 1.1rem 0;
  animation: slideDownSearch 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDownSearch {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.header-search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 50px;
  padding: 0.6rem 1.25rem;
  transition: all 0.2s ease;
}

.header-search-input-wrapper:focus-within {
  background: #FFFFFF;
  border-color: var(--purple-navy);
  box-shadow: 0 0 0 4px rgba(49, 39, 92, 0.1);
}

.header-search-input-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--purple-dark);
  font-weight: 500;
}

.header-search-submit-btn {
  background: linear-gradient(135deg, var(--purple-navy), var(--purple-main));
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.75rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(49, 39, 92, 0.2);
}

.header-search-submit-btn:hover {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-hover));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}

.header-search-close-btn {
  background: #F1F5F9;
  color: var(--slate-body);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-search-close-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
}

@media (max-width: 768px) {
  .header-search-form {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .header-search-submit-btn {
    width: calc(100% - 52px);
    text-align: center;
  }
}

/* ==========================================================================
   Projects Page — Sidebar + Main Layout
   ========================================================================== */

/* Two-column layout wrapper */
.projects-layout-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Sidebar ── */
.projects-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-panel {
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(49, 39, 92, 0.08);
  border: 1px solid var(--border-light);
}

.sidebar-panel-header {
  background: linear-gradient(135deg, var(--purple-navy) 0%, var(--purple-dark) 100%);
  color: #ffffff;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Sidebar nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.15rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  color: var(--slate-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
  cursor: pointer;
  position: relative;
}

.sidebar-nav-item:hover {
  background: var(--bg-tint);
  color: var(--purple-navy);
  transform: translateX(2px);
}

.sidebar-nav-item.active {
  background: linear-gradient(90deg, rgba(225,29,72,0.10) 0%, rgba(225,29,72,0.04) 100%);
  color: var(--accent-red);
  font-weight: 700;
  border-left: 3px solid var(--accent-red);
  padding-left: calc(0.9rem - 3px);
}

.sidebar-nav-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.sidebar-nav-label {
  flex: 1;
}

.sidebar-nav-check {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-red);
  background: rgba(225,29,72,0.12);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Active filters summary */
.sidebar-active-filters {
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.sidebar-active-title {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-gray);
  margin-bottom: 0.3rem;
}

.sidebar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  color: var(--purple-navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
}

.sidebar-tag-remove {
  color: var(--accent-red);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1;
  margin-left: 0.1rem;
}

.sidebar-tag-remove:hover { opacity: 0.7; }

.sidebar-clear-all {
  font-size: 0.78rem;
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 700;
  margin-top: 0.25rem;
}

.sidebar-clear-all:hover { text-decoration: underline; }

/* Stats mini-panel */
.sidebar-stats-panel {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, var(--purple-navy) 0%, var(--purple-dark) 100%);
  border-radius: 14px;
}

.sidebar-stat-item {
  text-align: center;
}

.sidebar-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.sidebar-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
  font-weight: 500;
}

.sidebar-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ── Main content ── */
.projects-main-content {
  min-width: 0;
}

/* Results bar */
.projects-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--bg-tint);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--slate-body);
}

.projects-results-count strong {
  color: var(--purple-navy);
}

/* ── Responsive: Sidebar collapses below 900px ── */
@media (max-width: 900px) {
  .projects-layout-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .projects-sidebar {
    position: static;
  }

  .sidebar-panel:first-child {
    border-radius: 10px;
    margin-bottom: 1rem;
  }

  .sidebar-panel-header {
    border-radius: 10px 10px 0 0;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.4rem;
  }

  .sidebar-nav-item {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 50px;
    gap: 0.35rem;
    transform: none !important;
  }

  .sidebar-nav-item.active {
    border-left: none;
    padding-left: 0.85rem;
    background: var(--accent-red);
    color: #ffffff;
  }

  .sidebar-nav-check { display: none; }

  .sidebar-stats-panel {
    display: none;
  }
}

@media (max-width: 600px) {
  .sidebar-nav-item {
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
  }
}
