/* Wrapper and Base Variables */
/* .swiper-wrapper {
    align-items: center;
} */
.cpc-wrapper {
    --cpc-bg: #0a0a0a;
    --cpc-card-bg: #1a1a1a;
    --cpc-accent: #e50914; 
    --cpc-text: #ffffff;
    
/*     background-color: var(--cpc-bg); */
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Swiper Container */
.cpc-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px; 
}

/* Slide Styles */
.cpc-slide {
    transition: opacity 0.4s ease;
    opacity: 0.4;
}

.swiper-slide-active.cpc-slide {
    opacity: 1;
}

/* The Card */
.cpc-card {
    display: block;
    position: relative;
/*     border-radius: 24px; */
    overflow: hidden;
/*     background: var(--cpc-card-bg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); */
    text-decoration: none;
    transform: translateZ(0); 
}

/* Image Container - Maintains aspect ratio on all devices */
.cpc-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 14; 
}

.cpc-img, .cpc-img-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpc-img-fallback {
/*     background: linear-gradient(45deg, #2a2a2a, #3a3a3a); */
}

/* Overlay Gradient */
.cpc-gradient-overlay {
	display:none;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

/* Text Content */
.cpc-content {
	display:none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8%; /* Percentage-based padding for responsiveness */
    z-index: 2;
}

/* Fluid typography that scales perfectly */
.cpc-title {
	display:none;
    color: var(--cpc-text);
    font-size: clamp(20px, 5vw, 36px); 
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Play Button */
.cpc-play-btn {
	display:none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: clamp(60px, 10vw, 80px); /* Fluid sizing */
    height: clamp(60px, 10vw, 80px);
    background-color: var(--cpc-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

.swiper-slide-active:hover .cpc-play-btn {
	display:none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Navigation Arrows */
.cpc-nav-btn {
	display:none !important;
    color: var(--cpc-text) !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
}

.cpc-nav-btn::after {
    font-size: 20px !important;
    font-weight: bold;
}

.cpc-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Pagination Bullets */
.cpc-pagination {
    bottom: 10px !important;
}

.cpc-swiper .swiper-pagination-bullet {
    background: var(--cpc-text);
    opacity: 0.4;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.cpc-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--cpc-accent);
    transform: scale(1.4);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .cpc-nav-btn { display: none !important; } /* Hide arrows on small screens */
    .cpc-play-btn { 
        opacity: 1; /* Always show play button on mobile (no hover state) */
        transform: translate(-50%, -50%) scale(1);
    }
}