﻿/* Duyuru Slider Genel Alan */
.duyuru-slider {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    height:650px;
   
}

/* Başlık */
.duyuru-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2a7c70;
    margin-bottom: 15px;
    text-align: center;
}

.duyuru-divider {
    width: 60px;
    height: 3px;
    background-color: #203b68;
    margin: 10px auto 20px;
    border-radius: 2px;
}

/* Carousel Ana Alan */
.duyuru-carousel {
    position: relative;
    overflow: hidden;
}

/* Duyuru İçeriği */
.duyuru-content {
    padding: 12px;
  
    border-radius: 10px;
   
    text-align: center;

}

/* Başlık İçerik */
.duyuru-title-content {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

    .duyuru-title-content:hover {
        color: #2a7c70;
    }

/* Tarih */
.duyuru-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

/* Carousel İç */
.duyuru-carousel-inner {
    position: relative;
    overflow: hidden;
    height: 60%; /* Sabit yükseklik */

}

/* Duyuru Kartları */
.duyuru-carousel-item {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 50%;
    opacity: 0; /* Başlangıçta görünmez */
    transform: scale(0.9) rotate(5deg); /* Hafif küçültme ve eğim */
    clip-path: circle(0%); /* Parçalanma animasyonu başlangıcı */
    transition: opacity 0.7s ease, clip-path 0.7s ease, transform 0.7s ease;
}

    /* Aktif Duyuru */
    .duyuru-carousel-item.duyuru-animate {
        display: flex;
        opacity: 1;
        clip-path: circle(150%);
        transform: scale(1) rotate(0deg);
    }

    .duyuru-carousel-item.duyuru-active {
        display: flex;
    }

/* Duyuru Görseli */
.duyuru-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

    .duyuru-image:hover {
        transform: scale(1.05);
    }

/* Slider Butonları */
.duyuru-control-prev,
.duyuru-control-next {
    color: #fff;
    width: 50px;
    height: 50px;
    background: #203b68;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.3s ease-in-out;
}

    .duyuru-control-prev:hover,
    .duyuru-control-next:hover {
        background: #2a7c70;
        opacity: 1;
    }

/* Önceki ve Sonraki Butonlarının Konumu */
.duyuru-control-prev {
    left: -15px;
}

.duyuru-control-next {
    right: -15px;
}

/* Buton Simgeleri */
.duyuru-control-prev-icon,
.duyuru-control-next-icon {
    font-size: 1.5rem;
    color: #fff;
}

/* Buton - Tüm Duyuruları Göster */
.btn {
    display: inline-block;
    margin-top: 15px;
    background: linear-gradient(45deg, #203b68, #2a7c70);
    color: #fff;
    padding: 5px 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

    .btn:hover {
        background: linear-gradient(45deg, #2a7c70, #1e5d55);
        transform: scale(1.05);
        color:white;
    }
