/* Nhonly Fullpage Popup Carousel */
.nh-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nh-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.nh-popup-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nh-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.nh-popup-close::before,
.nh-popup-close::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: white;
}

.nh-popup-close::before {
    transform: rotate(45deg);
}

.nh-popup-close::after {
    transform: rotate(-45deg);
}

.nh-popup-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow: hidden;
}

.nh-popup-content {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    max-height: 800px;
    position: relative;
}

.nh-carousel-item {
    display: flex !important;
    align-items: center;
    gap: 60px;
    height: 100%;
}

.nh-carousel-image {
    flex: 1;
    height: 100%;
    max-height: 700px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nh-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nh-carousel-text {
    flex: 1;
    color: white;
    padding: 40px;
}

.nh-carousel-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 3rem;
    color: white !important;
    margin: 0 0 30px;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease;
}

.nh-carousel-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease;
}

/* Owl Carousel Custom Navigation - Left and Right Sides */
.nh-popup-content .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.nh-popup-content .owl-nav button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
    color: white !important;
    font-size: 28px !important;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nh-popup-content .owl-nav button.owl-prev {
    margin-left: -80px;
}

.nh-popup-content .owl-nav button.owl-next {
    margin-right: -80px;
}

.nh-popup-content .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    transform: scale(1.1);
}

.nh-popup-content .owl-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Owl Carousel Dots */
.nh-popup-content .owl-dots {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nh-popup-content .owl-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nh-popup-content .owl-dot.active {
    background: white !important;
    width: 30px;
    border-radius: 6px;
}

.owl-theme .owl-dots .owl-dot span {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nh-carousel-item {
        flex-direction: column;
        gap: 30px;
        overflow-y: auto;
    }

    .nh-carousel-image {
        max-height: 300px;
        width: 100%;
    }

    .nh-carousel-text {
        padding: 20px;
    }

    .nh-carousel-title {
        font-size: 2rem;
    }

    .nh-carousel-description {
        font-size: 1rem;
    }

    .nh-popup-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    /* Navigation buttons on mobile */
    .nh-popup-content .owl-nav button {
        width: 45px;
        height: 45px;
        font-size: 20px !important;
    }

    .nh-popup-content .owl-nav button.owl-prev {
        margin-left: -10px;
    }

    .nh-popup-content .owl-nav button.owl-next {
        margin-right: -10px;
    }
}