/* =========================================================
 Mobile Project Section
 Header stack + mobile project cards
   ========================================================= */

.project-section-mobile-slider {
  background-color: var(--bs-primary-900); /* teal-950 */
  overflow: hidden;
}

.project-section-mobile-slider.section-base,
.project-section-mobile-slider.section-base-with-border {
  background-color: var(--bs-primary-900);
}

.project-section-mobile-slider .project-section-header {
  margin-bottom: var(--space-14);
  text-align: left;
}

.project-section-mobile-slider .project-section-header .title-3xl {
  text-align: left;
}

.project-section-mobile-slider .project-slider-header-title.body-lg {
  margin-bottom: 0;
  font-size: var(--font-size-18);
  line-height: 1.5rem;
}

.project-section-mobile-slider .project-slider-header-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-11);
  margin-top: 0;
  margin-bottom: var(--space-14);
  text-align: left;
  width: 100%;
}

.project-section-mobile-slider .project-slider-header-title {
  max-width: 20rem;
  text-align: left;
}

.project-section-mobile-slider .project-slider-header-title strong,
.project-section-mobile-slider .project-slider-header-title b {
  color: var(--bs-primary-400);
  font-weight: var(--font-weight-bold);
}

.project-section-mobile-slider .project-slider-button-section {
  display: flex;
  width: 100%;
}

.project-section-mobile-slider .project-slider-button-section .btn {
  width: 100%;
  min-height: 2.5rem;
  justify-content: center;
  border-radius: var(--radius-2xl) !important;
  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;
}

.project-section-mobile-slider .project-slider {
  margin-top: 0;
}

.project-section-mobile-slider .project-slider-container {
  position: relative;
  width: 100%;
}

.project-section-mobile-slider .project-slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1rem;
  bottom: 1.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-mobile-slider .project-swiper,
.project-section-mobile-slider .project-swiper-mobile {
  overflow: visible;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-right: -0.625rem;
}

/* ---- Cards (match desktop project card) ---- */

.project-section-mobile-slider .project-swiper-mobile .swiper-wrapper {
  align-items: stretch;
}

.project-section-mobile-slider .project-slider-card,
.project-section-mobile-slider .swiper-slide.project-slider-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  box-sizing: border-box;
  height: auto;
  min-height: 100%;
  margin: 0;
  background-color: var(--bs-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: none;
  transform: none;
  text-decoration: none;
  color: inherit;
}

.project-section-mobile-slider .project-slider-card:hover {
  transform: none;
  box-shadow: none;
}

.project-section-mobile-slider .project-slider-image-wrapper {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 16rem; /* h-44 — keep mobile image height */
  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-mobile-slider .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-mobile-slider .project-slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.project-section-mobile-slider .project-slider-logo {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  width: auto;
  max-width: 9.5rem;
  height: auto;
  max-height: 2.5rem;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: visible;
}

.project-section-mobile-slider .project-slider-logo-image,
.project-section-mobile-slider .project-slider-logo-image.no-grayscale {
  width: auto;
  height: auto;
  max-width: 9.5rem;
  max-height: 2.5rem;
  object-fit: contain;
  object-position: left bottom;
  filter: brightness(0) invert(1); /* force white logo */
}

.project-section-mobile-slider .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);
  padding: 1.25rem;
  background-color: var(--bs-white);
  border-top: 0;
  border-radius: 0;
  overflow: visible;
  text-align: left;
}

.project-section-mobile-slider .project-slider-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-9);
  width: 100%;
  flex: 1 1 auto;
}

.project-section-mobile-slider .project-slider-tag-section {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.625rem;
  width: auto;
  max-width: 100%;
  flex: none;
  min-width: 0;
}

.project-section-mobile-slider .project-slider-tag-service-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
}

.project-section-mobile-slider .project-slider-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  min-height: 1.75rem;
  padding: 0 0.75rem;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
}

.project-section-mobile-slider .project-slider-tag-label,
.project-section-mobile-slider .project-slider-tag span {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-mono) !important;
  font-size: var(--font-size-14) !important;
  font-weight: var(--font-weight-medium) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em;
  line-height: 1rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.project-section-mobile-slider .project-slider-tag-location {
  background-color: var(--bs-primary-500);
  border-radius: 0.31125rem;
  gap: 0.75rem;
}

.project-section-mobile-slider
  .project-slider-tag-location
  .project-slider-tag-label {
  color: var(--bs-primary-25) !important;
}

.project-section-mobile-slider .project-slider-tag-service {
  background-color: var(--bs-primary-100);
  border-radius: var(--radius-sm);
  gap: 0.625rem;
}

.project-section-mobile-slider
  .project-slider-tag-service
  .project-slider-tag-label {
  color: var(--bs-primary-900) !important;
}

.project-section-mobile-slider .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-mobile-slider .project-slider-title {
  margin: 0;
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  color: var(--bs-primary-600);
  font-family: var(--font-family-base);
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.project-section-mobile-slider .project-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.25rem;
  margin: 0;
  color: var(--bs-primary-600);
}

.project-section-mobile-slider .project-slider-arrow svg {
  width: 100%;
  height: 100%;
}

.project-section-mobile-slider .project-slider-dots,
.project-section-mobile-slider .project-slider-dots.swiper-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding: 0;
  position: static !important;
}

.project-section-mobile-slider .project-slider-dots .swiper-pagination-bullet {
  width: 1.5rem;
  height: 0.5rem;
  background-color: #d4d4d8; /* zinc-300 */
  border-radius: var(--radius-lg); /* rounded-lg */
  opacity: 1 !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.project-section-mobile-slider
  .project-slider-dots
  .swiper-pagination-bullet.swiper-pagination-bullet-active {
  width: 3.5rem;
  background-color: var(--bs-primary-400);
}

@media (prefers-reduced-motion: reduce) {
  .project-section-mobile-slider .project-slider-card {
    transition: none;
  }
}
