/* ========================
   Shared base (mobile + fallback)
 Desktop styles live under .project-section-desktop
   ======================== */

.project-slider-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-12);
  margin-top: 0;
}

.project-slider-header-title strong,
.project-slider-header-title b {
  color: var(--bs-primary-400);
}

.project-slider {
  margin-top: var(--space-16);
}

.project-slider-container {
  position: relative;
}

.project-swiper {
  overflow: visible;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.project-slider-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background-color: var(--bs-white);
  transition: all var(--transition-base);
  cursor: pointer;
  flex: 0 0 auto;
  height: auto;
  text-decoration: none;
  color: inherit;
}

.project-slider-image-wrapper {
  position: relative;
  height: 11.25rem;
  overflow: hidden;
  border-bottom: 0.1875rem solid var(--bs-success);
}

.project-slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-slider-logo {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2rem;
  padding: var(--space-2) var(--space-5);
  background-color: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.project-slider-logo-image {
  max-width: 8.75rem;
  max-height: 1.5rem;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) brightness(0.5);
}

.project-slider-logo-image.no-grayscale {
  filter: none;
}

.project-slider-content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.project-slider-tag-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.project-slider-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  background-color: var(--bs-primary-100);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.project-slider-tag span {
  color: var(--bs-primary-800);
  font-size: var(--font-size-11);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: var(--line-height-tight);
}

.project-slider-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  margin-top: auto;
}

.project-slider-title {
  color: var(--bs-primary-800);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family-base);
  line-height: var(--line-height-heading);
  margin: 0;
}

.project-slider-arrow {
  color: var(--bs-primary-800);
  width: 1.5rem;
  height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-left: auto;
}

.project-slider-arrow svg {
  width: 100%;
  height: 100%;
}

.project-slider-dots,
.project-slider-dots.swiper-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-14);
  position: static !important;
}

.project-slider-dots .swiper-pagination-bullet {
  width: 1.5rem;
  height: 0.5rem;
  background-color: var(--neutral-300);
  border-radius: var(--radius-full);
  opacity: 1 !important;
  transition: all var(--transition-base);
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
}

.project-slider-dots .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--bs-success);
  width: 3.75rem;
}

/* ========================
 Project Section — Desktop 
   Scoped under .project-section-desktop
   ======================== */

.project-section-desktop {
  background-color: var(--bs-primary-900); /* teal-950 */
  overflow: hidden;
}

.project-section-desktop.section-base,
.project-section-desktop.section-base-with-border {
  background-color: var(--bs-primary-900);
  padding-block: var(--space-22); /* py-24 / 96px-ish → 80px token */
}

.project-section-desktop .project-section-header {
  margin-bottom: var(--space-9); /* gap-5 cluster */
}

.project-section-desktop .project-section-title {
  margin: 0;
  max-width: 90rem;
  color: var(--bs-primary-100); /* teal-100 */
  font-family: var(--font-family-base);
  font-size: var(--font-size-48); /* text-5xl */
  font-weight: var(--font-weight-regular);
  line-height: 3.6rem;
  text-align: left;
}

.project-section-desktop .project-section-title strong,
.project-section-desktop .project-section-title b {
  font-weight: var(--font-weight-bold);
}

.project-section-desktop .project-slider-header-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-14);
  margin-top: 0;
  margin-bottom: var(--space-14); /* gap-8 before slider */
  text-align: left;
}

.project-section-desktop .project-slider-button-section {
  flex-shrink: 0;
}

.project-section-desktop .project-slider-button-section .btn {
  min-height: 2.5rem; /* h-10 */
  padding: 0.25rem 1rem;
  border-radius: var(--radius-2xl);
  border-width: 0.0625rem;
  border-style: solid;
  border-color: var(--bs-primary-100); /* emerald-100 outline */
  font-family: var(--font-family-mono);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25rem;
}

.project-section-desktop .project-slider {
  margin-top: 0;
  position: relative;
}

.project-section-desktop .project-slider-container {
  position: relative;
}

.project-section-desktop .project-slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 2.5rem;
  width: 5rem;
  background: linear-gradient(
    to left,
    rgba(var(--bs-primary-900-rgb), 0.95) 0%,
    rgba(var(--bs-primary-900-rgb), 0) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.project-section-desktop .project-swiper {
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.project-section-desktop .project-slider-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  background-color: var(--bs-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transform: none;
}

.project-section-desktop .project-slider-card:hover {
  transform: none;
  box-shadow: none;
}

.project-section-desktop .project-slider-image-wrapper {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 16rem; /* h-64 */
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
  border-bottom: 0.0625rem solid var(--bs-primary-400); /* emerald-500 */
  background: linear-gradient(0deg, #f2f2f5, #f2f2f5);
}

.project-section-desktop .project-slider-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    18.06deg,
    #0a1f1f -0.16%,
    rgba(10, 31, 31, 0) 41.22%
  );
  pointer-events: none;
  z-index: 1;
}

.project-section-desktop .project-slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-section-desktop .project-slider-logo {
  position: absolute;
  left: 1.25rem; /* ~18.86px */
  bottom: 1.25rem;
  z-index: 2;
  width: auto;
  max-width: 11.875rem; /* 190px */
  height: auto;
  max-height: 3.25rem; /* 52px */
  padding: 0;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: visible;
}

.project-section-desktop .project-slider-logo-image,
.project-section-desktop .project-slider-logo-image.no-grayscale {
  width: auto;
  height: auto;
  max-width: 11.875rem; /* 190px */
  max-height: 3.25rem; /* 52px */
  object-fit: contain;
  object-position: left bottom;
  filter: brightness(0) invert(1); /* force white logo */
}

.project-section-desktop .project-slider-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex: 1 1 auto;
  gap: var(--space-4); /* gap-2.5 */
  padding: 1.75rem 1.25rem !important; /* py-7 px-5 — beat leaked mobile rules */
  background-color: var(--bs-white);
  border-radius: 0;
  overflow: visible;
  text-align: left;
}

.project-section-desktop .project-slider-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-9); /* gap-5 */
  width: 100%;
}

.project-section-desktop .project-slider-header-title {
  margin: 0;
  color: var(--bs-primary-100);
  font-family: var(--font-family-base);
  text-align: left;
}

.project-section-desktop .project-slider-tag-section {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.625rem; /* gap-2.5 / 10px */
  width: auto;
  max-width: 100%;
}

.project-section-desktop .project-slider-tag-service-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem; /* gap-3 */
}

.project-section-desktop .project-slider-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem; /* h-7 */
  min-height: 1.75rem;
  padding: 0 1rem; /* px-4; vertical centering via flex */
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
}

.project-section-desktop .project-slider-tag-label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-mono) !important;
  font-size: 0.875rem !important; /* text-sm */
  font-weight: var(--font-weight-medium) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em;
  line-height: 1rem !important; /* leading-4 */
  white-space: nowrap;
}

.project-section-desktop .project-slider-tag-location {
  background-color: var(--bs-primary-500); /* teal-500 */
  border-radius: 0.31125rem; /* ~4.98px */
  gap: 0.75rem; /* gap-3 */
}

.project-section-desktop
  .project-slider-tag-location
  .project-slider-tag-label {
  color: var(--bs-primary-25) !important; /* cyan-100 */
}

.project-section-desktop .project-slider-tag-service {
  background-color: var(--bs-primary-100); /* emerald-100 */
  border-radius: var(--radius-sm); /* rounded-sm */
  gap: 0.625rem; /* gap-2.5 */
}

.project-section-desktop .project-slider-tag-service .project-slider-tag-label {
  color: var(--bs-primary-900) !important; /* teal-950 */
}

.project-section-desktop .project-slider-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  align-self: stretch;
  margin-top: 0;
}

.project-section-desktop .project-slider-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--bs-primary-600); /* emerald-900 */
  font-family: var(--font-family-base);
  font-size: var(--font-size-24); /* text-2xl */
  font-weight: var(--font-weight-semibold);
  line-height: 2rem; /* leading-8 */
  text-align: left;
  overflow-wrap: anywhere;
}

.project-section-desktop .project-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem; /* w-7 */
  height: 1.25rem; /* h-5 */
  margin: 0;
  color: var(--bs-primary-600); /* emerald-900 */
}

.project-section-desktop .project-slider-arrow svg {
  width: 100%;
  height: 100%;
}

.project-section-desktop .project-slider-dots,
.project-section-desktop .project-slider-dots.swiper-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-14);
  padding: 0;
  position: static !important;
}

.project-section-desktop .project-slider-dots .swiper-pagination-bullet {
  width: 2rem; /* w-8 */
  height: 0.625rem; /* h-2.5 */
  background-color: #d4d4d8; /* zinc-300 */
  border-radius: var(--radius-lg); /* rounded-lg */
  opacity: 1 !important;
  margin: 0 !important;
}

.project-section-desktop
  .project-slider-dots
  .swiper-pagination-bullet.swiper-pagination-bullet-active {
  width: 5rem; /* w-20 */
  background-color: var(--bs-primary-400); /* emerald-500 */
}

/* Shared video/image utilities (used elsewhere) */
.project-video-container {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.project-video-container .video-wrapper {
  width: 100%;
  height: 0;
  padding-block-end: 56.25%;
  position: relative;
}

.project-video-container .video-wrapper iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--radius-2xl);
}

.project-image-wrapper {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.project-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .project-section-desktop .project-swiper {
    margin-right: 0;
  }
}

@media (min-width: 1400px) {
  .project-section-desktop .project-swiper,
  .project-swiper {
    padding-left: 9rem;
    padding-right: 0; /* allow 3.5th card to peek on the right */
    margin-right: 0;
  }
}

@media (min-width: 1600px) {
  .project-section-desktop .project-swiper,
  .project-swiper {
    padding-left: 6.5rem;
    padding-right: 0;
  }
}

@media (min-width: 1900px) {
  .project-section-desktop .project-swiper,
  .project-swiper {
    padding-left: 15rem;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-section-desktop .project-slider-card,
  .project-section-desktop .project-slider-dots .swiper-pagination-bullet {
    transition: none;
  }
}
