/* Haber Bölümü Stilleri */
.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    border-bottom: none !important;
}

.section-title:after,
.section-title::after {
    content: none !important;
    display: none !important;
    height: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Ek güvenlik için başlık özel seçici */
.news-section .section-title:after,
.council-content-section .section-title:after,
.news-section .section-title::after,
.council-content-section .section-title::after {
    display: none !important;
    content: none !important;
    border: none !important;
    height: 0 !important;
    background: transparent !important;
}

/* Yeni Karosel Stilleri */
input[type=radio] {
    display: none;
}

.carousel-container {
    width: 100%;
    max-width: 1000px;
    max-height: 600px;
    height: 500px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

.carousel-container.dragging {
    cursor: grabbing;
}

.cards {
    position: relative;
    width: 100%;
    height: 450px;
    margin-bottom: 40px;
    will-change: transform;
    overflow: visible;
}

.cards.sliding .carousel-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.carousel-card {
    position: absolute;
    width: 60%;
    height: 100%;
    left: 0;
    right: 0;
    margin: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    user-drag: none;
    -webkit-user-drag: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 2;
}

/* ID tabanlı carousel geçişleri için genel kural */
/* Aktif haber kartı */
[id^="item-"]:checked ~ .cards [id^="news-"] {
    transform: translatex(0) scale(0.7);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Her haber kartını ara konuma getir */
[id^="item-"]:checked ~ .cards [id^="news-"] .card-overlay {
    opacity: 0;
}

/* Dinamik selektör oluşturan genel kurallar */
/* Aktif slayt için */
[id^="item-"]:checked ~ .cards label[for^="item-"][id="news-" + content(for, attr(content, ~, "item-"))] {
    transform: translatex(0) scale(1.05) !important;
    opacity: 1 !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

[id^="item-"]:checked ~ .cards label[for^="item-"][id="news-" + content(for, attr(content, ~, "item-"))] .card-overlay {
    opacity: 1 !important;
}

/* Sonraki slayt için */
[id^="item-"]:checked ~ .cards label[for^="item-"][id="news-" + content(for, attr(content, ~, "item-") + 1)] {
    transform: translatex(60%) scale(.7) !important;
    opacity: .3 !important;
    z-index: 1 !important;
}

/* Önceki slayt için */
[id^="item-"]:checked ~ .cards label[for^="item-"][id="news-" + content(for, attr(content, ~, "item-") - 1)] {
    transform: translatex(-60%) scale(.7) !important;
    opacity: .3 !important;
    z-index: 1 !important;
}

/* Tüm Haberler Butonu */
.all-news-btn {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.all-news-btn i {
    margin-left: 8px;
}

.all-news-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Mobil Uyumluluk */
@media (max-width: 991.98px) {
    .carousel-container {
        height: 420px;
        margin-bottom: 40px;
        touch-action: pan-y;
    }
    
    .cards {
        height: 370px;
        margin-bottom: 30px;
    }
    
    .carousel-card {
        width: 80%;
    }
    
    .carousel-nav {
        top: 40%;
        z-index: 45;
    }
    
    .carousel-nav-prev,
    .carousel-nav-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-nav-prev i,
    .carousel-nav-next i {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-container {
        height: 350px;
        touch-action: pan-y;
    }
    
    .cards {
        height: 300px;
        margin-bottom: 25px;
    }
    
    .carousel-card {
        width: 85%;
    }
    
    .card-overlay {
        height: 60%;
        padding: 15px;
    }
    
    .card-title {
        font-size: 16px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-date {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .card-link {
        font-size: 13px;
    }
    
    .carousel-nav {
        top: 40%;
        padding: 0 10px;
        z-index: 45;
    }
    
    .carousel-nav-prev,
    .carousel-nav-next {
        width: 32px;
        height: 32px;
    }
    
    .carousel-nav-prev i,
    .carousel-nav-next i {
        font-size: 1.2rem;
    }
}

/* Sağ ve Sol Ok Butonları */
.carousel-nav {
    position: absolute;
    width: 100%;
    top: 45%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 21;
    pointer-events: none;
}

.carousel-nav-prev,
.carousel-nav-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.carousel-nav-prev:hover,
.carousel-nav-next:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.carousel-nav-prev:focus,
.carousel-nav-next:focus {
    outline: none;
}

.carousel-nav-prev i,
.carousel-nav-next i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Mobil Uyumluluk */
@media (max-width: 767.98px) {
    .carousel-nav {
        top: 40%;
        padding: 0 10px;
        z-index: 45;
    }
    
    .carousel-nav-prev,
    .carousel-nav-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav-prev i,
    .carousel-nav-next i {
        font-size: 1.2rem;
    }
}

/* Haber başlıkları için link olmadan stilleme */
.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #ffc107 !important;
}

.card-title:hover {
    color: #ffa000 !important;
    text-decoration: underline;
}

.card-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.card-date i {
    margin-right: 5px;
}

.card-link {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.card-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--primary-color);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* Kartların içeriği için stil */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
} 