.haberler-slider {
    max-width: 50%;
    height: 100%;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    flex: 1 1 50%;
    aspect-ratio: 16 / 9;
}

.haberler-slider-container {
    display: flex;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    height: 100%;
}

.haberler-slide {
    flex: 0 0 100%;
    position: relative;
    height: auto;
}

.haberler-slide img {
    width: 100%;
    height: 100%; /* Slider yüksekliği ile aynı */
    object-fit: cover;
    border-radius: 10px; /* Görselin köşelerini de yumuşatıyoruz */
    cursor: pointer;
    display: block;
}

.haberler-right {
    flex: 1 1 30%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

.haberler-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.haberler-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.haberler-all {
    font-size: 14px;
    color: #333;
    text-decoration: underline;
    transition: color 0.2s ease;
    margin-right: 20px;
}

.haberler-all:hover {
    color: #666;
}

.haberler-container-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Sağdaki haber container'ları */

    .haber-container {
        width: 100%;
        max-width: 100%;
        background: white;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        cursor: pointer;
        transition: transform 0.3s ease, background-color 0.3s ease;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
        position: relative;
        min-height: 100 px;
    }
    

.haber-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #efecec;
    transition: left 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.haber-container:hover {
    transform: translateX(-5px);
}

.haber-container:hover::before {
    left: 0;
}

.haber-container:not(:hover) {
    transform: translateX(0);
}

.haber-container .haber-title,
.haber-container .haber-date {
    position: relative;
    z-index: 1;
}



.haber-container .haber-title {
    font-size: 1.1rem;
    font-weight: 450;
    color: #333;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    height: auto;
}

.haber-container .haber-date {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.haber-container .haber-date i {
    font-size: 12px;
    color: #666;
}

.haberler-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Slider kontrolleri */
.haberler-slider-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
    align-items: center;
}

.control-area {
    width: 100px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.prev-area {
    margin-left: 20px;
}

.next-area {
    margin-right: 20px;
}

.haberler-slider-prev,
.haberler-slider-next {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 32px;
    color: white;
}

.haberler-slider-prev:hover,
.haberler-slider-next:hover {
    transform: scale(1.1);
}

.haberler-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.haberler-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.haberler-slider-dot.active {
    background: white;
} 
.haberler-section-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 40px;
    max-width: 1850px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    margin-left: 4%;
    min-height: 580px;
}
.baskan-wrapper {
    flex: 1 1 30%;
    max-width: 420px;
    gap: 18px;
    width: 100%;
    margin-left: 4%;
}

.baskan-section {
    border-radius: 16px;
}

.baskan-image {
    border-radius: 16px;
    margin-bottom: -90px;
}

.baskan-icons {
    gap: 18px;
}

.icon-box {
    width: 60px;
    height: 60px;
    font-size: 28px;
}

.bottom-box {
    min-width: 120px;
    font-size: 1.1rem;
    padding: 18px;
    border-radius: 12px;
}

.bottom-box h3 {
    font-size: 1.1rem;
}

@media (max-width: 1199px) {
    .haberler-section-wrapper {
        max-width: 98vw;
        gap: 24px;
        padding: 30px 10px;
    }
    .haberler-slider,
    .haberler-right {
        max-width: 100%;
    }
    .baskan-wrapper {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .haberler-section-wrapper {
        flex-direction: column;
        align-items: center;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 10px;
        padding-right: 10px;
        gap: 16px;
    }
    .haberler-slider,
    .haberler-right {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .haber-title {
        font-size: 1.5rem;
        font-weight: 450;
    }
    .baskan-wrapper {
        max-width: 100%;
        gap: 10px;
    }
    .baskan-section {
        border-radius: 10px;
    }
    .baskan-image {
        border-radius: 10px;
        margin-bottom: -60px;
    }
    .icon-box {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    .bottom-box {
        font-size: 1rem;
        padding: 10px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .haberler-title {
        font-size: 1.5rem;
    }

    .haberler-slider-prev,
    .haberler-slider-next {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
}
