@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --brand-color: #e61b23;
    --text-dark: #0f0f12;
    --text-muted: #666;
}

/* --- BLOG HERO --- */
.blog-hero {
    background-image: url('~/img/Loading.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    text-align: center;
    padding: 150px 0 120px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden; /* Görsel taşmasını engelle */
}

    .blog-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(43, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
        z-index: 1;
    }

    .blog-hero .container {
        position: relative;
        z-index: 2;
    }

    .blog-hero h1 {
        font-family: 'Poppins', sans-serif;
        font-weight: 300;
        font-size: 45px;
        line-height: 1;
        color: #fff;
        margin: 0;
    }

/* --- BLOG LİSTESİ --- */
.blog-list {
    background: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Sayfa taşmasını engeller */
}

.haberler-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 32px;
    text-align: center;
    color: #000;
    margin-bottom: 50px;
}

.slider-container {
    position: relative;
    padding: 0 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.posts-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    width: 100%;
}

    .posts-container::-webkit-scrollbar {
        display: none;
    }

.post-card {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none;
    transition: transform 0.3s ease;
}

    .post-card .thumb {
        width: 100%;
        height: 200px;
        overflow: hidden;
        margin-bottom: 15px;
        border-radius: 20px;
    }

        .post-card .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 20px;
            transition: transform 0.4s ease;
        }

    .post-card:hover .thumb img {
        transform: scale(1.06);
    }

    .post-card .tarih {
        font-family: 'Poppins', sans-serif;
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .post-card .post-title {
        margin: 0 0 10px;
    }

        .post-card .post-title a {
            font-family: 'Inter', sans-serif;
            font-weight: 300;
            font-size: 20px;
            color: #000;
            text-decoration: none;
            line-height: 1.3;
        }

    .post-card .ozet {
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        color: #666;
        line-height: 1.6;
        margin-bottom: 20px;
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-card .more {
        font-family: 'Poppins', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: #666;
        text-align: right;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }

        .post-card .more:hover {
            color: var(--brand-color);
        }

        .post-card .more i {
            color: var(--brand-color);
            transition: color 0.2s ease;
        }

.slider-container .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    margin-top: -20px;
}

    .slider-container .carousel-arrow svg {
        width: 30px;
        height: 30px;
        stroke: #999;
        stroke-width: 1.5;
    }

.slider-container .carousel-left {
    left: 0;
}

.slider-container .carousel-right {
    right: 0;
}

.pagination-wrapper {
    display: none;
}

/* --- ÇİZGİ AYARI --- */
.blog-separator {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 auto;
    max-width: 1200px;
    /* Çizgiyi aşağı indirir, altındaki görseli itmez */
    transform: translateY(40px);
}

/* --- VİDEOLAR KISMI --- */
.videos-section {
    background: #fff;
    /* Üst boşluk azaltıldı (20px), böylece videolar yukarı çıkar */
    padding: 20px 0 60px 0;
    text-align: center;
}

    .videos-section h2 {
        font-family: 'Poppins', sans-serif;
        font-weight: 300;
        font-size: 32px;
        color: #000;
        margin-bottom: 40px;
    }

.video-image-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

    .video-image-container iframe,
    .video-image-container img {
        width: 100%;
        display: block;
        border: 0;
        border-radius: 20px;
    }

/* --- MOBİL DÜZENLEMELER (Responsive) --- */
@media (max-width: 991px) {
    .blog-hero h1 {
        font-size: 36px;
    }

    .blog-list {
        padding: 40px 0 20px;
    }

    .slider-container {
        padding: 0;
        width: 100%;
        overflow: hidden; /* Taşmayı önler */
    }

        .slider-container .carousel-arrow {
            display: none;
        }

    .posts-container {
        display: block;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 20px 20px;
        overflow: visible;
    }

    .post-card {
        display: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        margin-bottom: 0;
        flex-direction: column;
    }

        .post-card.active-card {
            display: flex;
            animation: fadeIn 0.5s ease;
        }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .pagination-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
        padding-bottom: 40px;
    }

    .page-btn {
        width: 45px;
        height: 45px;
        border: 1px solid #E6E6E6;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        color: #383838;
        text-decoration: none;
        transition: all 0.3s;
        cursor: pointer;
    }

        .page-btn.active {
            background-color: #FF001F;
            color: #fff;
            border-color: #FF001F;
        }

    .video-image-container {
        padding: 0 20px;
    }

    .blog-separator {
        width: 90%;
        transform: translateY(30px);
    }
}
