/* ============================================
   Banner Features - Desktop Grid Styles
   ============================================ */

.banner-features-desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.banner-features-desktop [role="listitem"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.banner-features-desktop .feature-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  color: white;
}

.banner-features-desktop .feature-icon svg {
  width: 2rem;
  height: 2rem;
}

.banner-features-desktop .text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.25rem;
}

.banner-features-desktop .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile Carousel - Hidden by default */
.banner-features-swiper {
  display: none;
}

/* ============================================
   Media Query: Mobile Only
   ============================================ */

@media (max-width: 767px) {
  /* Footer Takeda logo mobile */
  .takeda-ftr {
    margin-left:-38px;
  }
  /* Hide desktop grid on mobile */
  .banner-features-desktop {
    display: none !important;
  }

  /* Show mobile carousel */
  .banner-features-swiper {
    display: block;
    position: relative;
    padding-bottom: 48px;
    width: 100%;
  }

  .banner-features-swiper .swiper {
    width: 100%;
    overflow: visible;
  }

  .banner-features-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
  }

  .banner-features-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 180px;
  }

  /* Feature item centering - ONLY for carousel */
  .banner-features-swiper .swiper-slide [role="listitem"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    padding: 0 24px;
  }

  /* Icon centering - ONLY for carousel */
  .banner-features-swiper .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    width: 2rem;
    height: 2rem;
  }

  .banner-features-swiper .feature-icon svg {
    display: block;
    margin: 0 auto;
    width: 2rem;
    height: 2rem;
  }

  /* Text alignment - ONLY for carousel */
  .banner-features-swiper span,
  .banner-features-swiper p {
    width: 100%;
    text-align: center;
  }

  /* Pagination Dots */
  .banner-features-swiper .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 16px 0 0;
    z-index: 10;
  }

  .banner-features-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    margin: 0 !important;
  }

  .banner-features-swiper .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
  }

  /* Content spacing - ONLY for carousel */
  .banner-features-swiper .text-lg {
    margin-top: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .banner-features-swiper .text-sm {
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ============================================
   Media Query: Desktop - Ensure grid shows
   ============================================ */

@media (min-width: 768px) {
  .banner-features-desktop {
    display: grid !important;
  }

  .banner-features-swiper {
    display: none !important;
  }
}

/* ============================================
   Keep Connecting - Desktop Grid
   ============================================ */

.keep-connecting-card {
  background-color: white;
  border: 1px solid #e5e7eb;
}

/* ============================================
   Keep Connecting - Mobile Carousel
   ============================================ */

@media (max-width: 1023px) {
  .keep-connecting-carousel {
    position: relative;
    padding-bottom: 48px;
  }

  .keep-connecting-carousel .swiper {
    overflow: visible;
  }

  .keep-connecting-carousel .swiper-wrapper {
    display: flex;
  }

  .keep-connecting-carousel .swiper-slide {
    flex-shrink: 0;
    width: 100%;
  }

  /* Pagination Dots */
  .keep-connecting-carousel .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px 0 0;
  }

  .keep-connecting-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 1;
    margin: 0 !important;
  }

  .keep-connecting-carousel .swiper-pagination-bullet-active {
    background: #891515;
    width: 24px;
    border-radius: 4px;
  }
}

/* Hide carousel on desktop */
@media (min-width: 1024px) {
  .keep-connecting-carousel {
    display: none;
  }
}