/**
 * Frontend Premium Stylesheet: NYM Hero Banner Slider Plugin (Pure Responsive Image Focus)
 */

/* ==========================================================================
   1. Base Core Container & Layout Setup
   ========================================================================== */
.nym-hero-banner-wrap {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 280px; /* Safe minimum height to prevent layout collapse */
    display: block;
    overflow: hidden;
    box-sizing: border-box;
}

/* Background Layers */
.nym-bg-container {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
}

.nym-bg-picture {
    display: block;
    width: 100%;
    height: auto;
}

.nym-bg-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* ==========================================================================
   2. Custom Interactive Hover Zoom Effect
   ========================================================================== */
.nym-effect-hover-zoom:hover .nym-bg-img {
    transform: scale(1.05);
}

/* ==========================================================================
   3. CSS Entrance Animations (Hardware Accelerated)
   ========================================================================== */
.nym-anim-fade-in {
    animation: nymFadeEntrance 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.nym-anim-slide-up {
    animation: nymSlideEntrance 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.nym-anim-zoom-in {
    animation: nymZoomEntrance 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes nymFadeEntrance {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes nymSlideEntrance {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nymZoomEntrance {
    from { opacity: 0; transform: scale(1.08); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   4. Slider Swiper Controls Enhancements
   ========================================================================== */
.nym-hero-slider-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    display: block;
}

/* Navigation Arrow customization */
.nym-swiper-btn {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: all 0.25s ease;
    z-index: 10;
}

.nym-swiper-btn:after {
    font-size: 18px !important;
    font-weight: 700;
}

.nym-swiper-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.08);
}

/* Pagination Dots */
.nym-swiper-pagination {
    z-index: 10 !important;
    bottom: 20px !important;
}

.nym-swiper-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: all 0.25s ease;
}

.nym-swiper-pagination .swiper-pagination-bullet-active {
    background: #ffffff !important;
    width: 24px;
    border-radius: 5px;
}

/* ==========================================================================
   5. Mobile Responsive Touch Settings
   ========================================================================== */
@media (max-width: 768px) {
    .nym-swiper-btn {
        display: none; /* Hide arrows on mobile touch devices to favor gesture swipes */
    }
    .nym-hero-banner-wrap {
        min-height: 180px; /* Mobile safe minimum height */
    }
}

/* ==========================================================================
   6. Swiper Slide Automatic Responsive Height Fix
   ========================================================================== */
.nym-hero-slider-container .swiper-slide {
    height: auto !important;
}

/* Prevent layout flash/blink: Hide all slides except the first one before Swiper initializes */
.nym-hero-slider-container:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none !important;
}

/* Clickable banner link wrapper */
.nym-hero-link-wrap {
    display: block;
    width: 100%;
    height: auto;
    text-decoration: none;
    cursor: pointer;
    outline: none;
}
