/* ===============================
   NexTA - Media Section (YouTube Slider)
   White Glass Marble Style
=============================== */

.media-section {
  padding: clamp(90px, 12vw, 120px) 20px;
  background: linear-gradient(180deg, #fafbff 0%, #f4f6fb 50%, #eef1f7 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;

  /* Subtle marble background overlay */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.45) 0%, transparent 60%),
    linear-gradient(145deg, rgba(255,255,255,0.2), rgba(240,240,245,0.2));
  background-blend-mode: overlay;
}

/* Background glow accents */
.media-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(at 20% 30%, rgba(106,78,230,0.12) 0%, transparent 60%),
              radial-gradient(at 80% 40%, rgba(175,44,238,0.1) 0%, transparent 60%),
              radial-gradient(at 50% 90%, rgba(3,187,124,0.12) 0%, transparent 55%);
  z-index: 0;
  opacity: 0.4;
}

/* Marble texture (optional external image) */
.media-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/marble.png");
  opacity: 0.06;
  z-index: 0;
  mix-blend-mode: overlay;
}

/* Section title */
.media-section .section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}
.media-section .section-title span {
  display: inline-block;
  padding: 0 50px;
  font-size: clamp(32px, 2.8vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #6a4ee6 0%, #af2cee 50%, #03bb7c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Swiper wrapper */
.mediaSwiper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 0 0px;
  position: relative;
  z-index: 2;
}

/* Video cards — white glass marble style */
.mediaSwiper .swiper-slide {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(26px) saturate(190%) brightness(1.04);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.55);
  overflow: hidden;
  position: relative;
  width: 32% !important; /* 3 cards visible */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border 0.45s ease;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.7),
    0 12px 28px rgba(0,0,0,0.1);
  cursor: pointer;

  /* Subtle marble texture */
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(245,245,250,0.2)),
    url("https://www.transparenttextures.com/patterns/marble.png");
  background-blend-mode: overlay;
  background-size: cover;
}

/* Shine overlay */
.mediaSwiper .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.mediaSwiper .swiper-slide:hover::after {
  opacity: 1;
}

.mediaSwiper .swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  display: block;
}

/* Depth scaling */
.mediaSwiper .swiper-slide:not(.swiper-slide-active) {
  transform: scale(0.92);
  opacity: 0.8;
}
.mediaSwiper .swiper-slide.swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 20px 46px rgba(0,0,0,0.16);
  border-color: rgba(175,44,238,0.35);
}

/* Hover glow */
.mediaSwiper .swiper-slide:hover {
  transform: scale(1.06) translateY(-8px);
  box-shadow:
    0 28px 58px rgba(0,0,0,0.22),
    0 0 18px rgba(175,44,238,0.35);
  border: 1px solid transparent;
  background-image:
    linear-gradient(160deg, rgba(255,255,255,0.95), rgba(250,250,255,0.92)),
    linear-gradient(135deg, #03bb7c, #6a4ee6, #af2cee);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* YouTube overlay icon */
.youtube-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform 0.25s ease;
  pointer-events: none;
}
.youtube-logo svg {
  width: 68px;
  filter: drop-shadow(0 0 16px rgba(175,44,238,0.6));
}
.mediaSwiper .swiper-slide:hover .youtube-logo {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Arrows */
.media-section .swiper-button-prev,
.media-section .swiper-button-next {
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6a4ee6, #af2cee, #03bb7c);
  border: 2px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;

}
.media-section .swiper-button-prev:hover,
.media-section .swiper-button-next:hover {
  background: linear-gradient(135deg, #af2cee, #6a4ee6, #03bb7c);
  transform: scale(1.1);
}

/* View more button */
.view-more-container {
  margin-top: 50px;
  text-align: center;
  z-index: 2;
  position: relative;
}
.view-more-button {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 42px;
  border-radius: 50px;
  color: #fff;
  background: linear-gradient(135deg, #03bb7c, #6a4ee6, #af2cee);
  background-size: 200% 200%;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.view-more-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 55px;
  height: 200%;
  background: rgba(255,255,255,0.75);
  transform: rotate(25deg);
  opacity: 0;
  transition: all 0.6s ease;
}
.view-more-button:hover::before {
  left: 130%;
  opacity: 1;
}
.view-more-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #af2cee, #6a4ee6, #03bb7c);
}

/* ===============================
   Mobile
=============================== */
@media (max-width: 1024px) {
  .mediaSwiper .swiper-slide {
    width: 46% !important;
  }
}
@media (max-width: 768px) {
  .mediaSwiper .swiper-slide {
    width: 90% !important;
    transform: scale(0.9);
  }
  .mediaSwiper .swiper-slide.swiper-slide-active {
    transform: scale(1);
  }
  .view-more-button {
    font-size: 14px;
    padding: 12px 28px;
  }
  .media-section .section-title span {
    padding: 0 18px;
    font-size: clamp(22px, 5vw, 28px);
  }
}
/* ===============================
   Mobile Performance Optimizations
=============================== */
@media (max-width: 768px) {
  /* Disable heavy blur on video cards */
  .mediaSwiper .swiper-slide {
    backdrop-filter: none;
    background: #ffffff; /* fallback clean white */
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  }

  /* Remove shine overlay */
  .mediaSwiper .swiper-slide::after {
    display: none;
  }

  /* Simplify arrows */
  .media-section .swiper-button-prev,
  .media-section .swiper-button-next {
    backdrop-filter: none;
    background: #6a4ee6; /* solid color fallback */
  }
}
/* Hide arrows on mobile (only swipe) */
@media (max-width: 768px) {
  .media-section .swiper-button-prev,
  .media-section .swiper-button-next {
    display: none !important;
    pointer-events: none;
    visibility: hidden;
  }
}
