/* ===== EXACT ORIGINAL DESIGN ===== */

/* Reset and Base Styles */
.elementor-widget-swiper_cards_slider *,
.elementor-widget-gsap_pills_slider * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container Styles */
.elementor-widget-swiper_cards_slider .swiper-container,
.elementor-widget-gsap_pills_slider .slider-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== FIRST SWIPER SLIDER ===== */
.elementor-widget-swiper_cards_slider .swiper-container {
  padding: 80px 20px 60px;
  position: relative;
}

.elementor-widget-swiper_cards_slider .swiper {
  width: 100%;
  padding: 30px 10px 60px;
}

.elementor-widget-swiper_cards_slider .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  transition: all 0.4s ease;
}

.elementor-widget-swiper_cards_slider .swiper-slide-active {
  transform: translateY(-5px);
}

/* ===== CARD - COMPACT DESIGN ===== */
.elementor-widget-swiper_cards_slider .card {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 22px 20px;
  border-radius: 20px;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.22),
    inset 0 0 15px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card inner glow */
.elementor-widget-swiper_cards_slider .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent
  );
  z-index: 1;
}

/* Animated gradient border */
.elementor-widget-swiper_cards_slider .card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 22px;
  background: linear-gradient(
    120deg,
    #ff6ec7,
    #7873f5,
    #00d2ff,
    #7873f5,
    #ff6ec7
  );
  background-size: 300% 300%;
  animation: borderMove 8s linear infinite;
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.elementor-widget-swiper_cards_slider .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 0 20px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.elementor-widget-swiper_cards_slider .card:hover::after {
  opacity: 0.8;
}

/* Card content - Compact layout */
.elementor-widget-swiper_cards_slider .card-icon {
  font-size: 34px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ff6ec7, #7873f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.elementor-widget-swiper_cards_slider .card h2 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(to right, #fff, #e2d1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.elementor-widget-swiper_cards_slider .card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  flex-grow: 1;
  margin-bottom: 18px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.elementor-widget-swiper_cards_slider .card-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

.elementor-widget-swiper_cards_slider .card-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== ANIMATION ===== */
@keyframes borderMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== NAVIGATION BUTTONS - UPDATED POSITION ===== */
.elementor-widget-swiper_cards_slider .swiper-button-next:after,
.elementor-widget-swiper_cards_slider .swiper-button-prev:after {
  font-size: 15px !important;
}

.elementor-widget-swiper_cards_slider .swiper-button-next,
.elementor-widget-swiper_cards_slider .swiper-button-prev {
    width: 45px !important;
    height: 45px !important;
    margin-top: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 75px !important;
    right: 100px !important;
    z-index: 10 !important;
}

.elementor-widget-swiper_cards_slider .swiper-button-prev {
    right: 157px !important;
}

.elementor-widget-swiper_cards_slider .swiper-button-next:hover,
.elementor-widget-swiper_cards_slider .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-3px) !important;
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Remove the old navigation container */
.elementor-widget-swiper_cards_slider .swiper-navigation {
    display: none;
}

/* ===== HEADER ===== */
.elementor-widget-swiper_cards_slider .header {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
}

.elementor-widget-swiper_cards_slider .header h1 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.8px;
  background: linear-gradient(to right, #fff, #c8b4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.elementor-widget-swiper_cards_slider .header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.4px;
}

/* ===== SWIPER PAGINATION ===== */
.elementor-widget-swiper_cards_slider .swiper-pagination {
  bottom: 10px !important;
}

.elementor-widget-swiper_cards_slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.elementor-widget-swiper_cards_slider .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #ff6ec7, #7873f5);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(120, 115, 245, 0.7);
}

/* ===== SECTION HEADER ===== */
.elementor-widget-swiper_cards_slider .section-header {
  text-align: center;
  color: white;
  margin: 40px 0 30px;
  width: 100%;
  max-width: 1400px;
}

.elementor-widget-swiper_cards_slider .section-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
  background: linear-gradient(to right, #ff6ec7, #7873f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.elementor-widget-swiper_cards_slider .section-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SECOND SLIDER (GSAP) ===== */
.elementor-widget-gsap_pills_slider .slider-container {
  width: 100%;
  overflow: hidden;
}

.elementor-widget-gsap_pills_slider .slider {
  width: 100%;
  overflow: hidden;
}

.elementor-widget-gsap_pills_slider .rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.elementor-widget-gsap_pills_slider .viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.elementor-widget-gsap_pills_slider .track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.elementor-widget-gsap_pills_slider .pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    min-width: 180px;
    height: 160px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none; 
    color: inherit; 
}

.elementor-widget-gsap_pills_slider .pill:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.elementor-widget-gsap_pills_slider .pill img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 12px;
}

.elementor-widget-gsap_pills_slider .pill span {
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

/* Infinite scroll indicator for GSAP slider */
.elementor-widget-gsap_pills_slider .infinite-scroll-notice {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.elementor-widget-gsap_pills_slider .infinite-scroll-notice i {
  color: #7873f5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .elementor-widget-swiper_cards_slider .swiper-container {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  
  .elementor-widget-swiper_cards_slider .header {
    left: 20px;
    top: 20px;
  }
  
  .elementor-widget-swiper_cards_slider .header h1 {
    font-size: 24px;
  }
  
  .elementor-widget-swiper_cards_slider .swiper-button-next,
  .elementor-widget-swiper_cards_slider .swiper-button-prev {
    top: 90px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  
  .elementor-widget-swiper_cards_slider .swiper-button-prev {
    right: 72px !important;
  }
  
  .elementor-widget-swiper_cards_slider .card {
    min-height: 300px;
    padding: 18px 16px;
  }
  
  .elementor-widget-swiper_cards_slider .card h2 {
    font-size: 18px;
  }
  
  .elementor-widget-gsap_pills_slider .pill {
    min-width: 150px;
    height: 140px;
    padding: 16px;
  }
  
  .elementor-widget-gsap_pills_slider .pill img {
    width: 50px;
    height: 50px;
  }
  
  .elementor-widget-swiper_cards_slider .section-header h2 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .elementor-widget-swiper_cards_slider .swiper-button-next,
  .elementor-widget-swiper_cards_slider .swiper-button-prev {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    display: inline-block !important;
    margin: 20px 5px 10px !important;
  }
  
  .elementor-widget-swiper_cards_slider .swiper-button-prev {
    right: 0 !important;
  }
  
  .elementor-widget-swiper_cards_slider .header {
    position: relative;
    left: 0;
    top: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .elementor-widget-swiper_cards_slider .swiper-container {
    padding-top: 40px;
  }
  
  .elementor-widget-swiper_cards_slider .section-header {
    margin: 30px 0 20px;
  }
  
  .elementor-widget-swiper_cards_slider .section-header h2 {
    font-size: 22px;
  }
}

/* Background styles for section */
.custom-widgets-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: linear-gradient(
    135deg,
    #0f051d 0%,
    #1a0b2e 25%,
    #2d1b69 50%,
    #1a0b2e 75%,
    #0f051d 100%
  );
  position: relative;
  overflow-x: hidden;
}

/* Background decorative elements */
.custom-widgets-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 119, 230, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(100, 220, 255, 0.1) 0%, transparent 50%);
  z-index: -1;
}

/* Additional Styles for New Controls */

/* Card without animated border */
.elementor-widget-swiper_cards_slider .card[style*="--animated-border: none"]::after {
    display: none;
}

/* Button without icon spacing */
.elementor-widget-swiper_cards_slider .card-button i:first-child:last-child {
    margin-right: 0;
}

/* Make pills clickable with cursor */
.elementor-widget-gsap_pills_slider .pill {
    text-decoration: none;
    display: block;
}

/* Adjust pill hover for links */
.elementor-widget-gsap_pills_slider .pill:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments for image size control */
@media (max-width: 768px) {
    .elementor-widget-gsap_pills_slider .pill img {
        max-width: 100%;
        height: auto;
    }
}

/* Remove card icon if not set */
.elementor-widget-swiper_cards_slider .card-icon:empty {
    display: none;
}

/* Make GSAP pills proper links */
.elementor-widget-gsap_pills_slider .pill {
    text-decoration: none !important;
    display: block !important;
    cursor: pointer !important;
}

.elementor-widget-gsap_pills_slider .pill:hover {
    text-decoration: none !important;
}

/* Center navigation buttons on mobile */
@media (max-width: 480px) {
    .elementor-widget-swiper_cards_slider .swiper-button-container {
        display: flex;
        justify-content: center;
        margin: 15px 0;
    }
    
    .elementor-widget-swiper_cards_slider .swiper-button-next,
    .elementor-widget-swiper_cards_slider .swiper-button-prev {
        position: static !important;
        display: inline-flex !important;
        margin: 0 10px !important;
    }
}