/* JNXPC Limited - CSS Module: Featured Slideshow */
/* ============================================== */

.featured-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.1) 100%);
    padding: 0 8%;
    z-index: 1;
}

.slide:nth-child(2) .slide-content {
    background: rgba(0, 0, 0, 0.15);
}

.slide:nth-child(3) .slide-content {
    background: transparent;
}

.slide-text {
    max-width: 600px;
    color: #fff;
    z-index: 3;
}

.slide-text h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    align-items: top;
    display: flex;
}

.slide-text h2 span {
    font-size: 16px;
}

.slide-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 22px;
    text-shadow: 0 0 14px rgba(0, 0, 0, 1);
}

.slide-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.slide-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.slide:nth-child(1) .slide-btn {
    background-color: rgba(0, 122, 255, 0.4);
    border: 1px solid rgba(0, 122, 255, 1);
}

.slide:nth-child(1) .slide-btn:hover {
    background-color: rgba(0, 122, 255, 1);
}

.slide:nth-child(2) .slide-btn {
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 1);
    color: black;
}

.slide:nth-child(2) .slide-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.slide:nth-child(3) .slide-btn {
    background-color: rgba(94, 0, 156, 0.4);
    border: 1px solid rgba(94, 0, 156, 1);
}

.slide:nth-child(3) .slide-btn:hover {
    background-color: rgba(94, 0, 156, 1);
}

.slideshow-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    opacity: 1;
}

.slideshow-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

@media screen and (max-width: 1400px) {
    .slide-text h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .slide-text p {
        font-size: 14px;
    }

    .slideshow-container {
        height: 275px;
    }
}

@media screen and (max-width: 992px) {
    .slide-text h2 {
        font-size: 30px;
    }

    .slide:nth-child(2) .slide-text p {
        width: 70%;
    }

    .slide-text p {
        font-size: 14px;
    }

    .slideshow-container {
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .slide-text {
        max-width: 100%;
    }

    .slide-content {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
        padding: 0 5%;
    }

    .slide-text h2 {
        font-size: 1.8rem;
    }

    .slide-text p {
        font-size: 0.9rem;
        margin-bottom: 22px;
        width: 80%
    }

    .slide:nth-child(2) .slide-text p {
        width: 55%;
    }

    .slide:nth-child(3) .slide-text p {
        width: 60%;
    }

    .slide-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .slide-text h2 {
        font-size: 18px;
        margin-top: 0;
        margin-bottom: 8px;
    }

    .slide-text p {
        font-size: 10px;
        margin-bottom: 8px;
        width: 80%;
    }

    .slide:nth-child(2) .slide-text p {
        width: 60%;
    }

    .slide:nth-child(3) .slide-text p {
        width: 60%;
    }

    .slide-btn {
        padding: 6px 12px;
        font-size: 8px;
        margin-bottom: 16px;
    }

    .slideshow-container {
        height: 200px;
    }

    .nav-btn {
        font-size: 14px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .slideshow-dots {
        gap: 8px;
    }
}