/* 
* News Slider Stylesheet
* For Yemen Union in Turkey - Kayseri Branch Website
* Author: Cascade
* Date: May 2025
*/

/* News Hero Section */
.news-hero {
    padding: 40px 0;
    background-color: #f8f8f8;
}

.news-hero .section-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2rem;
    color: var(--primary, #ce1126);
}

.news-hero .section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

/* Page Navigation */
.page-navigation {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary, #ce1126);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link i {
    margin-left: 8px;
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--red-dark, #a00e1e);
}

/* News Slider Wrapper */
.news-slider-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* News Slider Image */
.news-slider-image {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* News Slider */
#news-slider {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* Slider Arrows */
.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-arrow {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary, #ce1126);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--red-dark, #a00e1e);
}

#news-slider .slider-arrow i {
    font-size: 1.2rem;
}

/* Slider Dots */
.slider-dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

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

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

.slider-dot.active {
    background-color: var(--primary, #ce1126);
    transform: scale(1.2);
}

/* News Gallery */
.news-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-top: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary, #ce1126) #f1f1f1;
}

.news-gallery::-webkit-scrollbar {
    height: 6px;
}

.news-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.news-gallery::-webkit-scrollbar-thumb {
    background-color: var(--primary, #ce1126);
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-item.active {
    opacity: 1;
    border-color: var(--primary, #ce1126);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Current News Info */
.current-news-info {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.news-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-left: 5px;
    margin-right: 5px;
    color: var(--primary, #ce1126);
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-actions {
    display: flex;
    justify-content: flex-start;
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .news-slider-wrapper {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
    
    .current-news-info {
        margin-top: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .news-actions {
        margin-top: auto;
    }
}

@media (max-width: 768px) {
    #news-slider {
        height: 400px;
    }
    
    .gallery-item {
        width: 100px;
        height: 70px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #news-slider {
        height: 300px;
    }
    
    .gallery-item {
        width: 80px;
        height: 60px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
    }
    
    .slider-arrow i {
        font-size: 1rem;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
}
