/* Popup Modal Styles */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-modal.show {
    display: flex;
    opacity: 1;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

.popup-slider {
    position: relative;
    width: 100%;
    height: 500px;
}

.popup-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.popup-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.popup-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.popup-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.popup-slider-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    pointer-events: auto;
    color: #333;
}

.popup-slider-nav button:hover {
    background: var(--primary, #007bff);
    color: white;
    transform: scale(1.1);
}

.popup-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.popup-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.popup-slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.popup-slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Popup */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-height: 80vh;
    }

    .popup-slider {
        height: 400px;
    }

    .popup-slider-nav button {
        width: 40px;
        height: 40px;
    }

    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .popup-slider {
        height: 300px;
    }

    .popup-slider-nav button {
        width: 35px;
        height: 35px;
    }

    .popup-slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    min-height: 600px;
    height: 80vh;
    max-height: 900px;
    display: block;
    width: 100%;
}

.hero-slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    pointer-events: auto;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Hero content overlay - ensure it's above slider */
.hero-slider .hero-inner {
    position: relative;
    z-index: 5;
    height: 100%;
    pointer-events: auto;
}

/* Ensure content after hero is visible */
main {
    display: block;
    width: 100%;
}

/* Secondary Image Slider Styles */
.secondary-slider-section {
    width: 100%;
    padding: 40px 0;
    background: var(--bg-soft, #f8f9fa);
}

.secondary-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.secondary-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.secondary-slide {
    flex: 0 0 calc(25% - 15px);
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.secondary-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.secondary-slide:hover img {
    transform: scale(1.05);
}

.secondary-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.secondary-slider-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: auto;
    color: var(--primary, #007bff);
}

.secondary-slider-nav button:hover {
    background: var(--primary, #007bff);
    color: white;
    transform: scale(1.1);
}

/* Responsive Secondary Slider */
@media (max-width: 1024px) {
    .secondary-slide {
        flex: 0 0 calc(33.333% - 13.33px);
    }
}

@media (max-width: 768px) {
    .secondary-slide {
        flex: 0 0 calc(50% - 10px);
    }

    .secondary-slider-nav button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .secondary-slide {
        flex: 0 0 100%;
    }

    .secondary-slider-nav button {
        width: 35px;
        height: 35px;
    }
}

/* Responsive Hero Slider */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 400px;
        height: 60vh;
        max-height: 600px;
    }

    .hero-slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 300px;
        height: 50vh;
        max-height: 450px;
    }

    .hero-slider-dots {
        bottom: 15px;
        gap: 6px;
    }

    .hero-slider-dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
}
