/* Kayan Görsel Carousel Styles */

/* Container Fluid Gradient Background - Siyah Beyaz Siyah Tema */
.container-fluid.py-5 {
    /* Alternative siyah-beyaz-siyah gradients - uncomment to use */
    /* background: linear-gradient(to bottom, #000000 0%, #ffffff 50%, #000000 100%); */
    /* background: linear-gradient(45deg, #1a1a1a 0%, #f5f5f5 50%, #1a1a1a 100%); */
    /* background: linear-gradient(180deg, #000000 0%, #666666 25%, #ffffff 50%, #666666 75%, #000000 100%); */
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.full-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.carousel-section {
    background: transparent;
    padding: 30px 20px;
    margin: 20px 0;
}

.carousel-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #000;
    font-size: 28px;
    font-weight: bold;
}

.carousel-section h4 {
    text-align: center;
    color: #f0f0f0;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 30px;
}

.news-carousel {
    position: relative;
}

/* Slick Navigation Arrows */
.news-carousel .slick-prev,
.news-carousel .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-carousel .slick-prev:hover,
.news-carousel .slick-next:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-50%) scale(1.1);
}

.news-carousel .slick-prev {
    left: -20px;
}

.news-carousel .slick-next {
    right: -20px;
}

.news-carousel .slick-prev:before,
.news-carousel .slick-next:before {
    font-size: 16px !important;
    color: white !important;
}

/* News Cards - Siyah Beyaz Tema */
.news-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #333333;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-category {
    background: #000000;
    color: white !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-section {
        padding: 20px 15px;
    }
    
    .carousel-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .news-carousel .slick-prev {
        left: -15px;
    }
    
    .news-carousel .slick-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 15px 10px;
    }
    
    .carousel-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .news-card {
        margin: 0 5px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 14px;
        height: auto;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
    
    .news-excerpt {
        font-size: 13px;
        height: auto;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
    
    /* Mobilde arrow'ları gizle */
    .news-carousel .slick-prev,
    .news-carousel .slick-next {
        display: none !important;
    }
}

/* Slick Track Fix */
.news-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

.news-carousel .slick-slide {
    height: auto;
}

.news-carousel .slick-slide > div {
    height: 100%;
}

.news-carousel .news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-carousel .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-carousel .news-meta {
    margin-top: auto;
}