﻿/* =============================================
   HERO CARDS CAROUSEL â€” Apple TV / Prime Style
   Center-focused, dark bg, side cards peeking
   ============================================= */

.hero-cards-carousel-section {
  background: #111;
  padding: 20px 0 36px;
  /* Section clips everything outside */
  overflow: hidden;
  position: relative;
}

.hero-cards-container {
  max-width: 100%;
  position: relative;
  /* Do NOT set overflow:hidden here â€” that kills the peek slides */
}

/* Swiper must overflow visible for peek effect to work */
.hero-cards-swiper {
  width: 100%;
  padding: 0 9% !important;
  box-sizing: border-box;
  overflow: visible !important;
}

/* Swiper wrapper also needs overflow visible */
.hero-cards-swiper .swiper-wrapper {
  overflow: visible !important;
}

/* Each slide â€” 16:9 on desktop */
.hero-cards-swiper .swiper-slide {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.6;
  transform: scale(0.85);
  
  cursor: pointer;
  /* Ensure background is dark, not white, if slide is empty */
  background: #1a1a1a;
}

  
  /* Active (center) slide */
  .hero-cards-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
  }


/* Adjacent slides slightly brighter */


/* Card itself */
.hero-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
}

/* Background image */
.hero-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

.hero-cards-swiper .swiper-slide-active .hero-card-bg {
  transform: scale(1.02);
}

/* Gradient overlay */
.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.3) 45%,
    transparent 72%
  );
  z-index: 2;
}

/* Content at bottom */
.hero-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 28px 32px;
  color: #fff;
}

.hero-card-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}

.hero-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}

.hero-card-btn {
  display: inline-block;
  padding: 9px 24px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 30px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: background 0.3s, border-color 0.3s;
}

.hero-card-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.8);
}

/* Navigation arrows */
.hero-cards-prev,
.hero-cards-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  transition: background 0.3s;
}

.hero-cards-prev { left: 12px; }
.hero-cards-next { right: 12px; }

.hero-cards-prev:hover,
.hero-cards-next:hover {
  background: rgba(255,255,255,0.28);
}

/* Pagination dots */
.hero-cards-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 16px !important;
  display: flex !important;
  justify-content: center;
  gap: 5px;
}

.hero-cards-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,0.4);
  opacity: 0.6;
  border-radius: 50%;
  transition: all 0.3s;
}

.hero-cards-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* ---- RESPONSIVE ---- */

/* Tablet */
@media (max-width: 1024px) {
  .hero-cards-swiper { padding: 0 7% !important; }
}

/* Small tablet */
@media (max-width: 768px) {
  .hero-cards-carousel-section { padding: 16px 0 30px; }
  .hero-cards-swiper { padding: 0 5% !important; }
  /* Switch to 4:3 on tablet so cards are taller and more visible */
  .hero-cards-swiper .swiper-slide { aspect-ratio: 16 / 9; border-radius: 10px; }
  .hero-card { border-radius: 10px; }
  .hero-card-content { padding: 20px 22px; }
  .hero-card-title { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-cards-carousel-section { padding: 12px 0 26px; }
  .hero-cards-swiper { padding: 0 3% !important; }
  /* Near square on phone â€” taller and easier to see */
  .hero-cards-swiper .swiper-slide { aspect-ratio: 16 / 9; border-radius: 8px; }
  .hero-card { border-radius: 8px; }
  .hero-card-content { padding: 16px 18px; }
  .hero-card-btn { padding: 7px 16px; font-size: 10px; }
  .hero-cards-prev, .hero-cards-next { width: 32px; height: 32px; font-size: 12px; }
}






