/* Base Container & 3D Perspective */
.aj-carousel-wrapper { width: 100%; position: relative; z-index: 20; }

.aj-carousel-wrapper.style-split,
.aj-carousel-wrapper.style-panoramic-split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.aj-carousel-wrapper.style-split.layout-right,
.aj-carousel-wrapper.style-panoramic-split.layout-right { flex-direction: row-reverse; }

.aj-carousel-container { width: 100%; padding: 60px 0 80px 0; overflow: visible; } 
.style-split .aj-carousel-container,
.style-panoramic-split .aj-carousel-container { flex: 2 1 450px; }

.elementor-widget-aj_3d_carousel .elementor-widget-container { overflow: visible !important; transform-style: preserve-3d !important; }

.swiper-container { width: 100%; position: relative; overflow: visible; perspective: 2000px; transform-style: preserve-3d; }
.aj-carousel-container .swiper-wrapper { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; transform-style: preserve-3d; }

.aj-carousel-container .swiper-slide { flex-shrink: 0 !important; max-width: none !important; width: 350px; height: auto !important; transition: visibility 0.4s, opacity 0.8s ease; }

.aj-carousel-card { position: relative; display: block; width: 100%; height: 550px; overflow: hidden; background: #000; box-sizing: border-box; border-radius: inherit; }
.aj-card-bg { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; pointer-events: none; user-select: none; z-index: 1; }

.aj-desc-inside { display: none; color: #e0e0e0; font-size: 14px; line-height: 1.6; margin-bottom: 25px; max-width: 90%; }
.aj-subtitle-below { display: none; }

/* ------------------------------------------- */
/* VIDEO SHOPPABLE OVERLAYS                    */
/* ------------------------------------------- */
.aj-has-video .aj-card-bg { pointer-events: auto; }
.aj-video-top-controls { position: absolute; top: 15px; right: 15px; display: flex; gap: 10px; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.swiper-slide-active .aj-video-top-controls { opacity: 1; }
.aj-video-mute-btn { background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 6px 12px; cursor: pointer; backdrop-filter: blur(5px); display: flex; align-items: center; gap: 6px; font-size: 12px; transition: 0.3s; }
.aj-video-mute-btn:hover { background: rgba(0,0,0,0.8); border-color: #fff; }
.aj-shoppable-card { position: absolute; bottom: 30px; left: 50%; transform: translate(-50%, 20px); width: 85%; background: #013220; border: 1px solid #D4AF37; border-radius: 8px; padding: 10px; display: flex; align-items: center; gap: 12px; z-index: 10; text-decoration: none; opacity: 0; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.swiper-slide-active .aj-shoppable-card { opacity: 1; transform: translate(-50%, 0); }
.aj-shoppable-thumb { width: 45px; height: 45px; border-radius: 4px; object-fit: cover; }
.aj-shoppable-title { color: #D4AF37; font-size: 13px; font-weight: 600; line-height: 1.3; flex: 1; text-align: left; }
.aj-shoppable-arrow { background: #D4AF37; color: #013220; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.aj-video-progress-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,0.2); z-index: 10; opacity: 0; transition: opacity 0.3s; }
.swiper-slide-active .aj-video-progress-container { opacity: 1; }
.aj-video-progress-bar { height: 100%; width: 0%; background: #D4AF37; }
.aj-has-video .aj-overlay-gradient, .aj-has-video .aj-card-content { display: none !important; }

/* ------------------------------------------- */
/* STYLE 1: GLASSMORPHISM OVERLAY              */
/* ------------------------------------------- */
.style-overlay .swiper-slide { opacity: 0.4; }
.style-overlay .swiper-slide-active { opacity: 1; }
.style-overlay .aj-overlay-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.3) 50%, transparent 100%); opacity: 0.9; z-index: 2; }
.style-overlay .aj-card-content { position: absolute; inset: 0; padding: 2.5rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1); z-index: 3; }
.style-overlay .swiper-slide-active .aj-card-content { opacity: 1; transform: translateY(0); }

/* ------------------------------------------- */
/* STYLE 2 & 5: CLEAN ANGLED & PANORAMIC       */
/* ------------------------------------------- */
.style-clean .swiper-slide, .style-panoramic .swiper-slide { opacity: 1; }
.style-clean .aj-overlay-gradient, .style-panoramic .aj-overlay-gradient { display: none !important; }
.style-clean .aj-card-content, .style-panoramic .aj-card-content { position: absolute; inset: 0; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.4s ease; z-index: 3; }
.style-clean .swiper-slide-active:hover .aj-card-content, .style-panoramic .swiper-slide-active:hover .aj-card-content { opacity: 1; }

/* ------------------------------------------- */
/* STYLE 3: TEXT AND BUTTON BELOW              */
/* ------------------------------------------- */
.style-below .swiper-slide { opacity: 1; }
.style-below .aj-overlay-gradient, .style-below .aj-card-content { display: none !important; } 
.aj-content-below { display: none; text-align: center; padding: 25px 15px 15px 15px; opacity: 0; transform: translateY(10px); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.style-below .aj-content-below { display: block; }
.style-below .swiper-slide-active .aj-content-below { opacity: 1; transform: translateY(0); }

/* ------------------------------------------- */
/* STYLE 4 & 6: SPLIT SCREEN STORY MODES       */
/* ------------------------------------------- */
.style-split .swiper-slide, .style-panoramic-split .swiper-slide { opacity: 1; }
.style-split .aj-overlay-gradient, .style-split .aj-card-content, .style-split .aj-content-below, .style-panoramic-split .aj-overlay-gradient, .style-panoramic-split .aj-card-content, .style-panoramic-split .aj-content-below { display: none !important; }
.aj-story-panel { display: none; flex: 1 1 300px; padding: 20px; opacity: 1; transition: opacity 0.4s ease; }
.aj-story-panel.fading { opacity: 0; }
.style-split .aj-story-panel, .style-panoramic-split .aj-story-panel { display: block; }
.aj-story-subtitle { display: block; color: #C7A15A; font-size: 11px; letter-spacing: 0.3em; font-weight: 500; text-transform: uppercase; margin-bottom: 12px; }
.aj-story-title { font-family: serif; font-size: 42px; color: #ffffff; margin: 0 0 15px 0; line-height: 1.2; }
.aj-story-desc { font-size: 15px; color: #a0a0a0; margin: 0 0 30px 0; line-height: 1.6; }

/* ------------------------------------------- */
/* STYLE 7: EXPANDING TV-STYLE FOCUS GALLERY   */
/* ------------------------------------------- */
.style-tv-expand .aj-carousel-container { padding: 40px 0; overflow: hidden; }

/* Smooth Width Transition for Auto-Sliding */
.style-tv-expand .swiper-slide { 
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
    opacity: 0.5; /* Dim inactive cards */
}
.style-tv-expand .swiper-slide-active { 
    opacity: 1; /* Brighten active card */
}

/* Base Card structure */
.style-tv-expand .aj-carousel-card {
    background: #013220; 
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
}

/* FIX: Ensure Image stays full size but pushes to the right when active */
.style-tv-expand .aj-card-bg {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    object-position: center !important;
}
.style-tv-expand .swiper-slide-active .aj-card-bg {
    object-position: right center !important; 
}

/* FIX: The Details Panel (Dark gradient overlay like Netflix/Hotstar) */
.style-tv-expand .aj-overlay-gradient { display: none !important; }
.style-tv-expand .aj-card-content {
    width: 65%; /* Extended text area */
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 40px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    pointer-events: none;
    /* Rich Dark Green Gradient overlay over the image */
    background: linear-gradient(to right, rgba(1, 50, 32, 0.95) 40%, rgba(1, 50, 32, 0.6) 80%, transparent 100%);
    z-index: 5;
}
.style-tv-expand .swiper-slide-active .aj-card-content {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.style-tv-expand .aj-desc-inside { display: block; }
.style-tv-expand .aj-title { margin-bottom: 15px; }

/* Inactive State: Product Category Name Below Image */
.style-tv-expand .aj-content-below {
    display: block;
    text-align: center;
    padding-top: 15px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}
.style-tv-expand .aj-title-below,
.style-tv-expand .aj-desc-below,
.style-tv-expand .aj-btn-below { display: none; } 

.style-tv-expand .aj-subtitle-below {
    display: block;
    color: #D4AF37;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Active State: Hide text below to focus on the expanded card */
.style-tv-expand .swiper-slide-active .aj-content-below {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
}

/* ------------------------------------------- */
/* SHARED TYPOGRAPHY & BUTTONS                 */
/* ------------------------------------------- */
.aj-subtitle { color: #C7A15A; font-size: 11px; letter-spacing: 0.3em; font-weight: 500; text-transform: uppercase; margin-bottom: 12px; }
.aj-title { font-family: serif; font-size: 36px; color: #ffffff; margin-bottom: 24px; line-height: 1.2; }
.aj-title-below { font-family: serif; font-size: 22px; color: #ffffff; margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 2px; }
.aj-desc-below { font-size: 13px; color: #a0a0a0; margin: 0 0 20px 0; line-height: 1.5; }

.aj-btn-explore, .aj-btn-below, .aj-btn-story { display: inline-flex; align-items: center; gap: 10px; padding: 12px 30px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: all 0.3s ease; border: 1px solid #C7A15A; background: transparent; color: #C7A15A; }
.aj-btn-explore { border-radius: 50px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; border-color: rgba(255,255,255,0.15); }
.aj-btn-explore i { font-size: 14px; transition: transform 0.3s ease; }
.aj-btn-explore:hover i { transform: translateX(4px); }

.swiper-button-next, .swiper-button-prev { position: absolute; top: 50%; transform: translateY(-50%); z-index: 50; color: #fff; background: rgba(255,255,255,0.15); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); }
.swiper-button-prev { left: 20px; }
.swiper-button-next { right: 20px; }
.swiper-button-next::after, .swiper-button-prev::after { display: none; }
.swiper-button-next i, .swiper-button-prev i { font-size: 20px; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: #C7A15A; color: #fff; border-color: #C7A15A; }

.swiper-pagination { position: absolute; bottom: -40px !important; left: 0; width: 100%; text-align: center; z-index: 50; border: none !important; box-shadow: none !important; background: transparent !important; margin: 0 !important; outline: none !important; }
.swiper-pagination::before, .swiper-pagination::after { display: none !important; content: none !important; border: none !important; }
.swiper-pagination-bullet { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.4); opacity: 1; margin: 0 6px !important; transition: all 0.3s ease; border-radius: 50%; cursor: pointer; display: inline-block; border: none !important; outline: none !important; box-shadow: none !important; }
.swiper-pagination-bullet-active { background: #C7A15A; transform: scale(1.5); }

@media (max-width: 767px) { 
    .aj-carousel-wrapper.style-split, .aj-carousel-wrapper.style-panoramic-split { flex-direction: column-reverse; gap: 10px; } 
    .aj-story-panel { text-align: center; padding: 10px; } 
    .style-tv-expand .swiper-slide-active { width: 90vw !important; }
    .style-tv-expand .swiper-slide-active .aj-card-content { width: 100%; background: linear-gradient(to top, rgba(1, 50, 32, 0.95) 20%, rgba(1, 50, 32, 0.6) 60%, transparent 100%); justify-content: flex-end; padding-bottom: 20px; }
}