/* 
   Fidelity News Slider - Cinematic Single Slide Design
   --------------------------------------------------
*/

.news-slider-section {
    position: relative;
    width: 100%;
    height: 700px; /* Adjusted height to 700px */
    overflow: hidden;
    background: #000;
    margin-top: 100px; /* Space for larger header logo */
}

.swiper-news {
    width: 100%;
    height: 100%;
}

.swiper-news .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background Image with Ken Burns Effect */
.news-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 10s linear; /* Slow zoom effect */
}

/* Zoom effect disabled as per user request */
.swiper-slide-active .news-slide-image {
    transform: none;
}

.news-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.news-slide-content {
    position: absolute;
    bottom: 10%; /* Adjusted for smaller height */
    left: 10%;
    right: 10%;
    z-index: 3;
    color: #fff;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
    text-align: left;
}

/* Right align for Arabic */
[dir="rtl"] .news-slide-content {
    text-align: right;
    left: 10%;
    right: 10%;
}

.swiper-slide-active .news-slide-content {
    opacity: 1;
    transform: translateY(0);
}

.news-slide-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.news-slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.news-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.news-slide-link:hover {
    background: transparent;
    color: #fff;
}

/* Swiper Navigation Customization */
.swiper-news .swiper-button-next,
.swiper-news .swiper-button-prev {
    color: #fff;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.swiper-news .swiper-button-next:after,
.swiper-news .swiper-button-prev:after {
    font-size: 20px;
}

.swiper-news .swiper-button-next:hover,
.swiper-news .swiper-button-prev:hover {
    background: var(--primary);
}

.swiper-news .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
}

.swiper-news .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-slider-section {
        height: 350px; /* Adjusted mobile height for 700px desktop height */
        margin-top: 80px;
    }
    .news-slide-content {
        bottom: 10%;
        text-align: center;
        left: 5%;
        right: 5%;
    }
    [dir="rtl"] .news-slide-content {
        text-align: center;
    }
    .swiper-news .swiper-button-next,
    .swiper-news .swiper-button-prev {
        display: none;
    }
}
