/* Nicobay Strengths Section */

.nicobay-strengths {
  background-color: rgb(var(--color-background));
  overflow: hidden;
}

.nicobay-strengths__container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

.nicobay-strengths__grid {
  min-height: 350px;
  overflow: hidden;
}

/* Desktop: traditional grid layout */
@media screen and (min-width: 991px) {
  .nicobay-strengths-swiper {
    pointer-events: none;
  }

  .nicobay-strengths-swiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    min-height: 350px;
    align-items: stretch;
    transform: none !important;
  }

  .nicobay-strengths-swiper .swiper-slide {
    width: auto !important;
    height: auto !important;
    margin-right: 0 !important;
  }

  /* Brand panel takes first column, spans 2 rows */
  .nicobay-strengths__brand-slide {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  /* Feature slides arranged in 2x2 grid in columns 2-3 */
  .nicobay-strengths__feature-slide:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .nicobay-strengths__feature-slide:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .nicobay-strengths__feature-slide:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .nicobay-strengths__feature-slide:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }

  .nicobay-strengths__brand-panel {
    width: 100%;
    display: flex;
  }

  .nicobay-strengths__scrollbar {
    display: none !important;
  }
}

/* Left Brand Panel */
.nicobay-strengths__brand-panel {
  background-color: #158808;
  color: white;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

.nicobay-strengths__brand-content {
  max-width: 280px;
  width: 100%;
  margin-left: 2rem;
}

.nicobay-strengths__main-title {
  font-family: var(--font-heading-family, var(--font-heading-family));
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
  color: white;
}

.nicobay-strengths__header-mobile {
  display: none;
  position: sticky;
  left: 0;
}

.nicobay-strengths__subtitle {
  font-family: var(--font-body-family, var(--font-body-family));
  font-size: 1.5rem;
  margin: 0 0 5rem 0;
  letter-spacing: 1px;
}

.nicobay-strengths__logo {
  margin: 2rem 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nicobay-strengths__logo img {
  max-width: 133px; /* 2/3 of 200px */
  height: auto;
  filter: brightness(0) invert(1); /* Convert to white */
}

.nicobay-strengths__tagline {
  font-family: var(--font-body-family, var(--font-body-family));
  font-size: 1.4rem;
  font-weight: 400;
  margin: 1rem 0 0 0;
  line-height: 1.4;
}

.nicobay-strengths__feature {
  padding: 1rem 3rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: white;
}

@media screen and (min-width: 991px) {
  .nicobay-strengths__feature:nth-child(even) {
    border-right: none;
  }

  .nicobay-strengths__feature:nth-child(3),
  .nicobay-strengths__feature:nth-child(4) {
    border-bottom: none;
  }
}

.nicobay-strengths__feature-icon {
  margin: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nicobay-strengths__feature-icon svg {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.nicobay-strengths__feature-content {
  flex: 1;
}

.nicobay-strengths__feature-title {
  font-family: var(--font-body-family, var(--font-body-family));
  font-size: 2rem;
  font-weight: 700;
  color: #138808;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.nicobay-strengths__feature-description {
  font-family: var(--font-body-family, var(--font-body-family));
  font-size: 1.4rem;
  font-weight: 400;
  color: #505050;
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Swiper Specific Styles */
.nicobay-strengths-swiper-container {
  position: relative;
  width: 100%;
  overflow: visible;
}

.nicobay-strengths-swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.nicobay-strengths-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition-property: transform;
  box-sizing: content-box;
}

.nicobay-strengths-swiper .swiper-slide {
  width: auto;
  height: auto;
  flex-shrink: 0;
  display: flex;
  position: relative;
  min-width: 0;
}

.nicobay-strengths__scrollbar {
  --swiper-scrollbar-size: 3px;
  --swiper-scrollbar-bg-color: #ffffff;
}

.nicobay-strengths__scrollbar .swiper-scrollbar-drag {
  background: #505050;
  opacity: 0.8;
  border-radius: 3px;
  cursor: grab;
  position: relative;
  height: 100%;
  display: block;
}

.nicobay-strengths__scrollbar.swiper-scrollbar-horizontal {
  width: 100%;
}

/* Mobile Responsive */
@media screen and (max-width: 990px) {
  .nicobay-strengths__scrollbar {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    --swiper-scrollbar-sides-offset: 25%;
    --swiper-scrollbar-bottom: 0px;
  }

  .nicobay-strengths__header-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nicobay-strengths__main-title-mobile {
    font-size: 2.25rem;
    font-weight: 700;
  }

  .nicobay-strengths__subtitle-mobile {
    font-size: 1.5rem;
    font-weight: 700;
    color: #505050;
  }

  .nicobay-strengths__container {
    overflow: visible;
    padding: 0 15px;
  }

  /* Swiper enabled on mobile */
  .nicobay-strengths-swiper {
    overflow: hidden !important;
    pointer-events: auto !important;
    touch-action: pan-x;
  }

  .nicobay-strengths-swiper .swiper-wrapper {
    display: flex !important;
    will-change: transform;
  }

  .nicobay-strengths__grid {
    min-height: 240px;
    display: block;
  }

  .nicobay-strengths-swiper .swiper-slide {
    width: min(19.4rem, 100%) !important;
    height: 21rem !important;
    flex-shrink: 0;
    pointer-events: auto;
  }

  .nicobay-strengths__brand-panel {
    padding: 2rem 1.5rem;
    border-radius: 5px;
    justify-content: start;
  }

  .nicobay-strengths__brand-content {
    margin: 0;
  }

  .nicobay-strengths__main-title {
    display: none;
  }

  .nicobay-strengths__subtitle {
    display: none;
  }

  .nicobay-strengths__logo {
    margin: 0;
    margin-bottom: 20px;
  }

  .nicobay-strengths__logo img {
    width: 100%;
    max-width: 13rem;
  }

  .nicobay-strengths__feature {
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 2rem;
    border-radius: 5px;
  }

  .nicobay-strengths__feature-icon {
    margin: 10px;
  }

  .nicobay-strengths__feature-icon svg {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  .nicobay-strengths__feature-title {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
  }

  .nicobay-strengths__feature-description {
    font-size: 1.2rem;
  }

  .nicobay-strengths__tagline {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 749px) {
  .nicobay-strengths__container {
    padding: 0 15px;
  }

  .nicobay-strengths__main-title-mobile {
    font-size: 2rem;
  }

  .nicobay-strengths__subtitle-mobile {
    font-size: 1.2rem;
  }
}
