/**
 * GCCSAT Homepage Carousels
 * Dedicated styles for VSAT, Sponsor, and Shop carousels.
 * Load this file after main stylesheets to override minified CSS.
 */

/* ========== GLOBAL: Sharp rendering, no blur ========== */
.VSAT-carousel,
.VSAT-Sponsor-carousel,
.shop-carousel {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.VSAT-carousel img,
.VSAT-Sponsor-carousel img,
.shop-carousel img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ========== VSAT CAROUSEL (Service cards: Portable, High-Speed, etc.) ========== */
.VSAT-carousel {
  position: relative;
  padding: 2rem 0;
  margin: 2rem auto;
  max-width: 1100px;
}

.VSAT-carousel .swiper-wrapper {
  padding: 0.5rem 0;
  align-items: center;
  gap: 20px; /* visible space between cards (not affected by global margin: 0) */
}

/* Override combined-noncritical.min.css .swiper-slide { flex-shrink: 0 }; center card in slide */
.VSAT-carousel .swiper-slide {
  flex-shrink: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 1;
  transform: scale(1);
}

.VSAT-item {
  position: relative;
  width: 220px;
  height: 240px;
  padding: 1.25rem 1.5rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  gap: 0.75rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(12, 22, 48, 0.98) 0%, rgba(25, 48, 85, 0.4) 100%);
  border: 2px solid rgba(0, 242, 254, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 242, 254, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: visible;
}

.VSAT-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.5) 0%, transparent 45%, rgba(61, 157, 217, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.VSAT-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 242, 254, 0.6);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 242, 254, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.VSAT-item:hover::before {
  opacity: 1;
}

/* Icon circle + larger icon area - no flex-shrink so gap comes from Swiper spaceBetween */
.VSAT-thumb {
  position: relative;
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.VSAT-thumb::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.35) 0%, rgba(0, 150, 200, 0.2) 100%);
  border: 2px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.25), inset 0 0 20px rgba(0, 212, 255, 0.1);
  z-index: 0;
}

.VSAT-item:hover .VSAT-thumb::before {
  border-color: rgba(0, 242, 254, 0.65);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.4), inset 0 0 24px rgba(0, 212, 255, 0.15);
}

.VSAT-item:hover .VSAT-thumb {
  transform: translateY(-4px) scale(1.06);
}

.VSAT-thumb img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.VSAT-item:hover .VSAT-thumb img {
  transform: scale(1.1);
}

.team-content {
  position: relative;
  width: 94%;
  z-index: 2;
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.VSAT-item:hover .team-content {
  transform: translateY(-2px);
}

.team-content h3 {
  margin: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 45%, #0077aa 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
  transition: background-position 0.5s ease, box-shadow 0.35s ease;
}

.VSAT-item:hover .team-content h3 {
  background-position: 100% 50%;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.team-content h3 a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* VSAT carousel: arrows removed - content only, autoplay */
.VSAT-carousel .swiper-nav {
  display: none !important;
}

/* Shop carousel nav - icon-only arrows, inside container, clickable */
.shop-carousel .swiper-nav {
  left: 8px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(15, 25, 55, 0.98) 0%, rgba(0, 150, 200, 0.4) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 242, 254, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  opacity: 0.9;
  cursor: pointer;
  pointer-events: auto !important;
}

.VSAT-carousel .swiper-nav:hover {
  transform: translateY(-50%) scale(1.12);
  border-color: rgba(0, 242, 254, 0.7);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.25);
  opacity: 1;
}

.VSAT-carousel .swiper-nav.swiper-next {
  left: auto;
  right: 8px;
}

.VSAT-carousel .swiper-nav.swiper-prev {
  left: 8px;
  right: auto;
}

.VSAT-carousel .swiper-nav i {
  font-size: 1.25rem;
  color: #fff;
  transition: transform 0.25s ease;
}

.VSAT-carousel .swiper-nav:hover i {
  transform: scale(1.15);
}

/* ========== VSAT SPONSOR CAROUSEL (Brand logos) ========== */
.VSAT-Sponsor-carousel {
  padding: 1.5rem 0;
  position: relative;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.VSAT-Sponsor-carousel .swiper-wrapper {
  align-items: center;
  padding: 0.5rem 0;
}

.VSAT-Sponsor-carousel .swiper-slide {
  text-align: center;
  padding: 0.5rem;
  transition: transform 0.35s ease;
  opacity: 1;
  transform: scale(1);
  flex-shrink: 1 !important;
}

.VSAT-Sponsor-carousel .swiper-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 165px;
  height: 105px;
  padding: 1.1rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(12, 22, 48, 0.95) 0%, rgba(25, 48, 85, 0.35) 100%);
  border: 2px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.VSAT-Sponsor-carousel .swiper-slide:hover {
  transform: translateY(-6px) scale(1.04);
}

.VSAT-Sponsor-carousel .swiper-slide:hover a {
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 242, 254, 0.12);
}

.VSAT-Sponsor-carousel img {
  max-width: 90%;
  max-height: 82px;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.VSAT-Sponsor-carousel .swiper-slide:hover img {
  transform: scale(1.06);
}

/* ========== SHOP CAROUSEL (Product cards) ========== */
.shop-carousel {
  position: relative;
  padding: 2rem 0;
  margin: 2rem auto;
  max-width: 100%;
}

.shop-carousel .swiper-wrapper {
  padding: 0.5rem 0;
  align-items: stretch;
}

/* Override combined file .swiper-slide { flex-shrink: 0 } */
.shop-carousel .swiper-slide {
  flex-shrink: 1 !important;
  height: auto;
  transition: transform 0.35s ease;
  opacity: 1;
  transform: scale(1);
}

.VSAT-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  padding: 4px;
  max-width: 360px;
  min-width: 280px;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.35s ease;
}

.VSAT-product-card:hover {
  transform: translateY(-10px);
}

.VSAT-product-thumb {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 25, 55, 0.9) 0%, rgba(30, 55, 95, 0.25) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.3),
    inset 0 0 40px rgba(0, 242, 254, 0.06);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.VSAT-product-card:hover .VSAT-product-thumb {
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 32px rgba(0, 242, 254, 0.12);
  transform: translateY(-4px);
}

.VSAT-product-card .VSAT-product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  object-position: center;
  padding: 1.25rem;
  transition: transform 0.5s ease;
}

.VSAT-product-card:hover .VSAT-product-thumb img {
  transform: scale(1.06) translateY(-4px);
}

.VSAT-product-card .VSAT-product-thumb .default-btn {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: auto;
  max-width: calc(100% - 2rem);
  height: 36px;
  line-height: 36px;
  transform: translateY(120%);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  z-index: 5;
  border: none;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #0066aa 100%);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
  visibility: hidden;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.VSAT-product-card:hover .VSAT-product-thumb .default-btn {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.VSAT-product-card .VSAT-product-thumb .default-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.6);
  background: linear-gradient(135deg, #00e5ff 0%, #00aacc 50%, #0077aa 100%);
}

.product-info {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 25, 55, 0.8) 0%, rgba(30, 55, 95, 0.15) 100%);
  border: 1px solid rgba(0, 242, 254, 0.15);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Shop carousel: product-info same width/height, compact bottom */
.shop-carousel .VSAT-product-card .product-info {
  width: 100%;
  min-height: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.5rem 1rem 0.6rem;
  box-sizing: border-box;
  overflow: hidden;
}
.shop-carousel .VSAT-product-card .product-info .product-inner {
  flex-shrink: 0;
  margin-bottom: 0.35rem;
}
.shop-carousel .VSAT-product-card .product-info h3 {
  flex: 1;
  display: flex;
  align-items: flex-start;
  min-height: 0;
  font-size: 0.9rem;
  line-height: 1.3;
}
.shop-carousel .VSAT-product-card .product-info h3 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-clamp: 3;
  word-break: break-word;
}

.VSAT-product-card:hover .product-info {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.product-info h3 a {
  background: linear-gradient(135deg, #fff 0%, #00d4ff 50%, #0099cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.35s ease;
}

.VSAT-product-card:hover .product-info h3 a {
  background: linear-gradient(135deg, #00d4ff 0%, #00e5ff 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-info .category li a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.product-info .category li a:hover {
  background: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.25);
}

/* Shop carousel nav - icon-only arrows (no Swiper text), inside container, clickable */
.shop-carousel .swiper-nav {
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(15, 25, 55, 0.98) 0%, rgba(0, 150, 200, 0.4) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 242, 254, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  opacity: 0.9;
  cursor: pointer;
  pointer-events: auto !important;
}

.shop-carousel .swiper-nav:hover {
  transform: translateY(-50%) scale(1.12);
  border-color: rgba(0, 242, 254, 0.7);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.25);
  opacity: 1;
}

.shop-carousel .swiper-nav.swiper-next {
  right: 8px;
}

.shop-carousel .swiper-nav.swiper-prev {
  left: 8px;
}

.shop-carousel .swiper-nav i {
  font-size: 1.125rem;
  color: #fff;
  transition: transform 0.25s ease;
}

.shop-carousel .swiper-nav:hover i {
  transform: scale(1.15);
}

/* General swiper nav base - position and clickable (above slides); hide any Swiper ::after "prev"/"next" text */
.VSAT-carousel .swiper-nav,
.shop-carousel .swiper-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  pointer-events: auto !important;
  user-select: none;
  z-index: 999;
}

.VSAT-carousel .swiper-nav::before,
.VSAT-carousel .swiper-nav::after,
.shop-carousel .swiper-nav::before,
.shop-carousel .swiper-nav::after {
  display: none !important;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .VSAT-carousel {
    max-width: 100%;
    padding: 1.25rem 0;
  }

  .VSAT-carousel .swiper-wrapper {
    gap: 12px;
  }

  .VSAT-carousel .swiper-nav,
  .shop-carousel .swiper-nav {
    width: 38px;
    height: 38px;
  }

  .VSAT-carousel .swiper-nav i,
  .shop-carousel .swiper-nav i {
    font-size: 1rem;
  }

  .VSAT-item {
    width: 200px;
    height: 220px;
    padding: 1.25rem;
  }

  .VSAT-thumb {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
  }

  .VSAT-thumb::before {
    inset: -3px;
  }

  .team-content h3 {
    height: 38px;
    font-size: 0.9rem;
  }

  .VSAT-product-thumb {
    height: 220px;
  }

  .VSAT-product-card {
    max-width: 260px;
  }

  .VSAT-Sponsor-carousel .swiper-slide a {
    width: 130px;
    height: 82px;
    padding: 0.85rem 1.25rem;
  }
}
