/**
 * Home Banner & Feature Strip
 * Enqueued on front page via aptly_enqueue_home_banner_assets()
 */

/* Hero base: style.css. Dark overlay overrides below. */
.aptly-home-banner-slide-text-container .aptly-hero-heading {
    color: white;
    max-width: 1200px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(80px);
}

.aptly-home-banner-slide-text-container .aptly-hero-heading span,
.aptly-home-banner-slide-text-container .aptly-hero-heading .aptly-text-highlight {
    font-weight: 600;
    background: linear-gradient(90deg, #8918D2 0%, #486AD2 3.37%, #08BBD2 67.31%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.aptly-home-banner-slide-text-container .aptly-hero-description {
    color: white;
    max-width: 1000px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(80px);
}

/* --- UI OVERLAY STRUCTURE (ALIGNED) --- */
.aptly-home-banner-ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.aptly-home-banner-ui-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
}

.aptly-home-banner-slide-text-container {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: auto;
}

/* --- RESTORED SLIDER & FEATURE STRIP --- */
.aptly-home-banner-main-wrapper {
    width: 100%;
    font-family: 'Poppins';
    background: #000;
}

.aptly-home-banner-slider-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.aptly-home-banner-slide-img {
    filter: grayscale(100%) brightness(1.3);
}

.aptly-home-banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        linear-gradient(270deg, rgba(0, 0, 0, 0.2) 15.44%, rgba(0, 0, 0, 0.2) 65.89%, rgba(0, 0, 0, 0.4) 97.11%);
    z-index: 2;
}

.aptly-home-banner-dots-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    pointer-events: auto;
}

.aptly-home-banner-dot {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10%;
}

.aptly-home-banner-dot.aptly-home-banner-dot-active {
    background-color: rgba(0, 6, 119, 1);
    border-color: rgba(0, 6, 119, 1);
    transform: scale(1.1);
}

/* --- FEATURE STRIP (RESTORED) --- */
.aply-feature-strip {
    width: 100%;
    background: linear-gradient(135deg, #07051a 0%, #0b0730 50%, #060417 100%);
    padding: 3rem 0;
    border-radius: 0px 0px 30px 30px;
}

.aply-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
}

.aply-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.aply-feature-icon img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    flex-shrink: 0;
}

.aply-feature-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.aply-gradient-text-first {
    background: linear-gradient(90deg, #58ABFF, #FFFFFF, #8702D9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aply-gradient-text-second {
    background: linear-gradient(90deg, #7F05CB, #C6BDE7, #5F98FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aply-gradient-text-third {
    background: linear-gradient(90deg, #F9F9F9, #58ACFF, #8D00E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aply-feature-desc {
    color: #cfd3ff;
    font-size: 12px;
    line-height: 1.6;
    max-width: 340px;
}

/* --- RESTORED SCROLL DOWN ANIMATION --- */
.aptly-home-banner-bottom-center-img {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.aptly-home-banner-scroll-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 90px;
}

.aptly-home-banner-scrolldown {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 50px;
    position: relative;
}

.aptly-home-banner-scrolldown::before {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background-color: white;
    border-radius: 50%;
    animation: AptlyHomeBanner_scrolldown-anim 2s infinite;
}

@keyframes AptlyHomeBanner_scrolldown-anim {
    0% {
        opacity: 0;
        height: 6px;
    }

    40% {
        opacity: 1;
        height: 10px;
    }

    80% {
        transform: translate(0, 20px);
        height: 10px;
        opacity: 0;
    }

    100% {
        height: 3px;
        opacity: 0;
    }
}

/* --- SLIDER SLIDE (shared; width set inline from PHP) --- */
.aptly-home-banner-slide {
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.aptly-home-banner-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 1024px) {
    .aply-feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .aptly-home-banner-ui-grid {
        grid-template-columns: 1fr;
    }

    .aptly-home-banner-dots-container {
        position: absolute;
        bottom: 40px;
        left: 0;
        right: 0;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .aptly-home-banner-slide-text-container .aptly-hero-heading {
        font-size: 38px;
    }

    .aptly-home-banner-slide-text-container .aptly-hero-description {
        font-size: 20px;
    }

    .aply-feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
