/* Homepage News and Blog Slider Styles */
.homepage-news {
    padding: 54px 0 88px 0;
    background: #F8F8F8;
    
    .content {
        display: flex;
        flex-direction: column;
        gap: 32px;
        
        .slider-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            
            
            .slider-title-section {
                display: flex;
                flex-direction: column;
                gap: 24px;
                width: 70%;
                
                .fira-sans-condensed-300 {
                    font-size: 24px;
                    line-height: 32px;
                }
            }
            
            .slider-controls {
                display: flex;
                
                .slider-btn {
                    padding: 10px 32px;
                    background: transparent;
                    border-bottom: 1px solid #2828284d;
                    opacity: 0.3;
                    cursor: pointer;
                    font-size: 24px;
                    position: relative;
                    transition: all 0.3s ease;
                }
                .slider-btn:hover,
                .slider-btn.active {
                    opacity: 1;
                    transition: all 0.3s ease;
                }
                
                .slider-btn::before {
                    content: '';
                    width: 0%;
                    height: 1px;
                    position: absolute;
                    background: #282828;
                    left: 50%;
                    bottom: 0;
                    transform: translateX(-50%);
                    transition: all 0.3s ease;
                }
                
                .slider-btn:hover::before,
                .slider-btn.active::before {
                    width: 100%;
                    transition: all 0.3s ease;
                }

            }

        }
        
        .slider-content {
            
            .posts-slider {
                
                .post-card {
                    display: initial;
                    background: #fff;
                    transition: .2s linear;
                    
                    .post-featured-image {
                        height: 314px;
                        background: #fff;
                        
                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                            transition: transform 0.3s ease;
                        }
                    }
                    
                    .post-content {
                        background: #fff;
                        width: 100%;
                        padding: 24px;
                        display: flex;
                        flex-direction: column;
                        gap: 16px;
                        
                        .post-title {
                            font-size: 24px;
                            line-height: 32px;
                            
                            * {
                                color: var(--font-black);
                            }
                        }
                        
                        .post-meta {
                            display: flex;
                            align-items: center;
                            gap: 6px;
                            
                            * {
                                font-size: 18px;
                                line-height: 32px;
                            }
                            
                            .post-date,
                            .post-separator {
                                color: var(--font-black);
                            }
                            
                            .post-subcategory {
                                color: var(--mint-blue);
                            }
                        }
                        
                        .post-excerpt {
                            display: -webkit-box;
                            -webkit-line-clamp: 3;
                            -webkit-box-orient: vertical;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            opacity: 0.6;
                            font-size: 16px;
                            line-height: normal;
                        }
                        
                        .post-card-bottom {
                            display: flex;
                            justify-content: space-between;
                            align-items: flex-end;
                            
                            
                            
                            .post-link {
                                color: var(--font-black);
                                text-decoration: underline;
                                font-size: 18px;
                                line-height: normal;
                            }
                        }
                    }
                }
                
                .post-card:hover {
                    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
                    transition: .2s linear;
                }
            }
        }
    }
}



.slider-content {
    position: relative;
}

.posts-slider {
    display: none;
}

.posts-slider.active {
    display: block;
}

.swiper-container {
    width: 100%;
    padding: 0;
}

.swiper-slide {
    height: auto;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #333;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination {
    position: static;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    background: #ddd;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #333;
}


@media screen and (max-width: 1023px) {
    .homepage-news {
        padding: 48px 0;
    }
    
    .homepage-news .content .slider-header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .homepage-news .content .slider-header .slider-title-section {
        width: 100%;
    }
    
    .homepage-news .content .slider-header .slider-title-section .fira-sans-condensed-300 {
        font-size: 16px;
        line-height: normal;
    }
    
    .homepage-news .content .slider-header .slider-controls {
        width: 100%;
    }
    
    .homepage-news .content .slider-header .slider-controls .slider-btn {
        width: 50%;
        font-size: 18px;
        line-height: 32px;
    }
    
    .homepage-news .content .slider-content .posts-slider .post-card .post-featured-image {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    
    
    .homepage-news .content .slider-content .posts-slider .post-card .post-content .post-title {
        font-size: 18px;
        line-height: normal;
    }
}